When Esc was pressed the menu was not being shown in leveleditor (fixed).
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 20 Apr 2004 18:51:22 +0000 (18:51 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 20 Apr 2004 18:51:22 +0000 (18:51 +0000)
SVN-Revision: 601

src/leveleditor.cpp

index acda848..bc521cf 100644 (file)
@@ -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;