From: Tobias Gläßer Date: Mon, 10 May 2004 21:59:25 +0000 (+0000) Subject: Leveleditor closes on SDL_QUIT events now. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0a61c0289934c9fd3b26f0d7726c89ae73e1d527;p=supertux.git Leveleditor closes on SDL_QUIT events now. SVN-Revision: 1093 --- diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 7f7a5f479..3d70081af 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -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)