From: Ricardo Cruz Date: Sun, 9 May 2004 13:55:54 +0000 (+0000) Subject: Don't show selection cursor when help is being displayed. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4aff2147399ee47f348a9d08c86d8fb9cce3321d;p=supertux.git Don't show selection cursor when help is being displayed. SVN-Revision: 1052 --- diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 5001fd460..c6ef0baa4 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -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; } diff --git a/src/leveleditor.h b/src/leveleditor.h index b0b664360..d60611cae 100644 --- a/src/leveleditor.h +++ b/src/leveleditor.h @@ -31,7 +31,8 @@ struct square /* selection modes */ enum { CURSOR, - SQUARE + SQUARE, + NONE }; int leveleditor(char* filename = NULL);