Don't show selection cursor when help is being displayed.
authorRicardo Cruz <rick2@aeiou.pt>
Sun, 9 May 2004 13:55:54 +0000 (13:55 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sun, 9 May 2004 13:55:54 +0000 (13:55 +0000)
SVN-Revision: 1052

src/leveleditor.cpp
src/leveleditor.h

index 5001fd4..c6ef0ba 100644 (file)
@@ -1544,6 +1544,8 @@ void le_testlevel()
 void le_showhelp()
 {
   bool tmp_show_grid = le_show_grid;
+  int temp_le_selection_mode = le_selection_mode;
+  le_selection_mode = NONE;
   le_show_grid = false;
   le_help_shown = true;
 
@@ -1648,4 +1650,5 @@ void le_showhelp()
 
   le_show_grid = tmp_show_grid;
   le_help_shown = false;
+  le_selection_mode = temp_le_selection_mode;
 }
index b0b6643..d60611c 100644 (file)
@@ -31,7 +31,8 @@ struct square
 /* selection modes */
 enum {
   CURSOR,
-  SQUARE
+  SQUARE,
+  NONE
 };
 
 int leveleditor(char* filename = NULL);