From 0a61c0289934c9fd3b26f0d7726c89ae73e1d527 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Mon, 10 May 2004 21:59:25 +0000 Subject: [PATCH] Leveleditor closes on SDL_QUIT events now. SVN-Revision: 1093 --- src/leveleditor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 2.11.0