Limitated the number of bullets to be shot at the same time.
[supertux.git] / src / leveleditor.cpp
index acda848..6933e39 100644 (file)
@@ -44,7 +44,6 @@
 
 /* definitions to aid development */
 
-
 /* definitions that affect gameplay */
 #define KEY_CURSOR_SPEED 32
 #define KEY_CURSOR_FASTSPEED 64
@@ -96,7 +95,7 @@ struct LevelEditorWorld
     bad_guys.push_back(BadGuy());
     BadGuy& new_bad_guy = bad_guys.back();
   
-    new_bad_guy.init(x,y,kind);
+    new_bad_guy.init(x,y,kind, false /* stay_on_platform */);
   }
 
   void activate_bad_guys()
@@ -815,6 +814,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;