void LevelEditor::change(int x, int y, int newtile, int layer)
{
void LevelEditor::change(int x, int y, int newtile, int layer)
{
// find the tilemap of the current layer, and then change the tile
if(x < 0 || (unsigned int)x >= sector->solids->get_width()*32 ||
y < 0 || (unsigned int)y >= sector->solids->get_height()*32)
// find the tilemap of the current layer, and then change the tile
if(x < 0 || (unsigned int)x >= sector->solids->get_width()*32 ||
y < 0 || (unsigned int)y >= sector->solids->get_height()*32)
_("This is the built-in level editor. Its aim is to be intuitive\n"
"and simple to use, so it should be pretty straightforward.\n"
"\n"
_("This is the built-in level editor. Its aim is to be intuitive\n"
"and simple to use, so it should be pretty straightforward.\n"
"\n"
_("The Foreground/Interactive/Background buttons may be used to\n"
"see and edit the respective layer. Levels have three tiles layers:\n"
"Foreground - tiles are drawn on top of everything and have no contact\n"
_("The Foreground/Interactive/Background buttons may be used to\n"
"see and edit the respective layer. Levels have three tiles layers:\n"
"Foreground - tiles are drawn on top of everything and have no contact\n"