Limitated the number of bullets to be shot at the same time.
[supertux.git] / src / leveleditor.cpp
index 92c8ec5..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()
@@ -345,11 +344,8 @@ int leveleditor(int levelnb)
 
       mouse_cursor->draw();
 
-printf("done: %i\n", done);
-
       if(done)
         {
-printf("done\n");
           le_quit();
           return 0;
         }
@@ -818,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;