no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@499 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-06 16:41:49 +00:00
parent 9ac1c49f1c
commit 07454747e0
+3 -4
View File
@@ -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)