Leveleditor closes on SDL_QUIT events now.
authorTobias Gläßer <tobi.web@gmx.de>
Mon, 10 May 2004 21:59:25 +0000 (21:59 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Mon, 10 May 2004 21:59:25 +0000 (21:59 +0000)
SVN-Revision: 1093

src/leveleditor.cpp

index 7f7a5f4..3d70081 100644 (file)
@@ -1226,13 +1226,14 @@ void le_checkevents()
             }
           }
           break;
-        case SDL_QUIT: // window closed
-          done = 1;
-          break;
         default:
           break;
         }
       }
+      else if(event.type == SDL_QUIT) /* window closing */
+      {
+      done = 1;
+      }
     }
 
     if(le_world != NULL)