X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fleveleditor.cpp;h=c9b232010e6961dd086d5c43043d0e2cb675ddfd;hb=6e843b1780f62f45b7021bd8c38181aa211588ee;hp=f17fbe1b5dcf99a04bc00226069be468e48e4372;hpb=d46c78c842ab4090a3f46e560c891234167f124b;p=supertux.git diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index f17fbe1b5..c9b232010 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -36,7 +36,6 @@ #include "sector.h" #include "background.h" #include "gameloop.h" -#include "badguy.h" #include "gameobjs.h" #include "camera.h" @@ -45,7 +44,6 @@ LevelEditor::LevelEditor() show_grid = true; selection.clear(); - global_frame_counter = 0; selection_end = selection_ini = Vector(0,0); left_button = middle_button = mouse_moved = false; level = 0; @@ -233,7 +231,6 @@ else mouse_cursor->set_state(MC_NORMAL); -frame_timer.start(.25, true); done = false; while(!done) { @@ -535,10 +532,6 @@ if(tiles_board->is_hover() || tiles_layer->is_hover() || level_options->is_hover if(sector) { - if(frame_timer.check()) { - ++global_frame_counter; - } - // don't scroll before the start or after the level's end float width = sector->solids->get_width() * 32; float height = sector->solids->get_height() * 32; @@ -862,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) @@ -941,7 +935,7 @@ mouse_cursor->set_state(MC_HIDE); char str[1024]; -char *text1[] = { +const char *text1[] = { _("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" @@ -977,7 +971,7 @@ char *text1[] = { "enemies and game objects in the bottom.\n") }; -char *text2[] = { +const char *text2[] = { _("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" @@ -1010,7 +1004,7 @@ char *text2[] = { "Webpage: http://pingus.seul.org/~grumbel/flexlay/") }; -char **text[] = { text1, text2 }; +const char **text[] = { text1, text2 }; bool done;