From: Ricardo Cruz Date: Tue, 20 Apr 2004 18:51:22 +0000 (+0000) Subject: When Esc was pressed the menu was not being shown in leveleditor (fixed). X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b3c5f0ece37b618744a07ca52298e7e6da9f0d01;p=supertux.git When Esc was pressed the menu was not being shown in leveleditor (fixed). SVN-Revision: 601 --- diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index acda8484b..bc521cf96 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -815,6 +815,8 @@ void le_checkevents() key = event.key.keysym.sym; switch(key) { + case SDLK_ESCAPE: + Menu::set_current(leveleditor_menu); case SDLK_LEFT: if(fire == DOWN) cursor_x -= KEY_CURSOR_SPEED;