--- a/video/sdl_v.c Fri Jul 29 15:55:14 2005 +0000
+++ b/video/sdl_v.c Fri Jul 29 16:40:29 2005 +0000
@@ -350,11 +350,11 @@
if (_game_mode != GM_MENU) {
if(_patches.autosave_on_exit) {
DoExitSave();
- return ML_QUIT;
+ return 0;
} else
AskExitGame();
} else
- return ML_QUIT;
+ return 0;
break;
case SDL_KEYDOWN: /* Toggle full-screen on ALT + ENTER/F */
@@ -400,7 +400,7 @@
SdlClose(SDL_INIT_VIDEO);
}
-static int SdlVideoMainLoop(void)
+static void SdlVideoMainLoop(void)
{
uint32 next_tick = SDL_CALL SDL_GetTicks() + 30;
uint32 cur_ticks;
@@ -414,9 +414,9 @@
InteractiveRandom(); // randomness
while ((i = PollEvent()) == -1) {}
- if (i >= 0) return i;
+ if (i >= 0) return;
- if (_exit_game) return ML_QUIT;
+ if (_exit_game) return;
mod = SDL_CALL SDL_GetModState();
keys = SDL_CALL SDL_GetKeyState(&numkeys);