From: Ryan Flegel Date: Wed, 12 May 2004 02:10:13 +0000 (+0000) Subject: - fixed enum bug mentioned by Kevin L. Mitchell on the mailing list X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3af54f57e748b9a60c1007322c6b238188902c06;p=supertux.git - fixed enum bug mentioned by Kevin L. Mitchell on the mailing list SVN-Revision: 1125 --- diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index e48e4a1d3..4b02026fb 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -153,7 +153,7 @@ static MouseCursor* mouse_select_object; static GameObject* selected_game_object; static square selection; -static int le_selection_mode; +static SelectionMode le_selection_mode; static SDL_Event event; TileMapType active_tm; @@ -1727,7 +1727,7 @@ void le_testlevel() void le_showhelp() { bool tmp_show_grid = le_show_grid; - int temp_le_selection_mode = le_selection_mode; + SelectionMode temp_le_selection_mode = le_selection_mode; le_selection_mode = NONE; show_selections = true; le_show_grid = false; diff --git a/src/leveleditor.h b/src/leveleditor.h index d60611cae..48b8a6e18 100644 --- a/src/leveleditor.h +++ b/src/leveleditor.h @@ -29,11 +29,7 @@ struct square }; /* selection modes */ -enum { - CURSOR, - SQUARE, - NONE -}; +enum SelectionMode { CURSOR, SQUARE, NONE }; int leveleditor(char* filename = NULL); void newlevel(void);