X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fleveleditor.cpp;h=6ebe73521591e0acb62a87d9e5304d4c7642f0fd;hb=3df54471553ec420c83fc1c22d4c939f522395fe;hp=0578d3703bd735eedf29833e0c3493245efcef66;hpb=00fb759c2385ff08caf38e916c2d0ba8cafc8a41;p=supertux.git diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 0578d3703..6ebe73521 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -855,6 +855,7 @@ void LevelEditor::test_level() void LevelEditor::change(int x, int y, int newtile, int layer) { + (void) 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)