/*
Minetest
-Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
{
core::rect<s32> rect(0, 0, bw, 30);
rect = rect + v2s32(size.X/2-bw/2-(bw/2+5), size.Y/2-30/2+5 + msg_h/2);
+ wchar_t* text = wgettext("Yes");
Environment->addButton(rect, this, GUI_ID_YES,
- wgettext("Yes"));
+ text);
+ delete[] text;
}
{
core::rect<s32> rect(0, 0, bw, 30);
rect = rect + v2s32(size.X/2-bw/2+(bw/2+5), size.Y/2-30/2+5 + msg_h/2);
+ wchar_t* text = wgettext("No");
Environment->addButton(rect, this, GUI_ID_NO,
- wgettext("No"));
+ text);
+ delete[] text;
}
changeCtype("C");
}