Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1866
Modified Files:
leveleditor.h leveleditor.cpp
Log Message:
- fixed enum bug mentioned by Kevin L. Mitchell on the mailing list
Index: leveleditor.h
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/leveleditor.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- leveleditor.h 9 May 2004 13:55:54 -0000 1.9
+++ leveleditor.h 12 May 2004 02:10:13 -0000 1.10
@@ -29,11 +29,7 @@
};
/* selection modes */
-enum {
- CURSOR,
- SQUARE,
- NONE
-};
+enum SelectionMode { CURSOR, SQUARE, NONE };
int leveleditor(char* filename = NULL);
void newlevel(void);
Index: leveleditor.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/leveleditor.cpp,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- leveleditor.cpp 11 May 2004 18:26:27 -0000 1.110
+++ leveleditor.cpp 12 May 2004 02:10:13 -0000 1.111
@@ -153,7 +153,7 @@
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_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;
|