From 07454747e0120ba0423859d49f3e6b178601e983 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 6 Nov 2006 16:41:49 +0000 Subject: [PATCH] no message git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@499 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 3ea33075..e940b04a 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -19,19 +19,20 @@ void cleanup(char *msg) // single program exit point; #endif }; SDL_Quit(); - exit(1); }; void quit() // normal exit { writeservercfg(); cleanup(NULL); + exit(EXIT_SUCCESS); }; void fatal(char *s, char *o) // failure exit { s_sprintfd(msg)("%s%s (%s)\n", s, o, SDL_GetError()); cleanup(msg); + exit(EXIT_FAILURE); }; int scr_w = 640; @@ -371,7 +372,6 @@ int main(int argc, char **argv) switch(event.type) { case SDL_QUIT: - quit(); break; #ifndef WIN32 @@ -425,8 +425,7 @@ int main(int argc, char **argv) #endif }; quit(); - return 1; - + return EXIT_SUCCESS; }; void loadcrosshair(char *c)