demo stuff, script contexts

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1909 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-10 10:17:31 +00:00
parent 5cd58a52f8
commit 87c7755754
8 changed files with 71 additions and 26 deletions
+4
View File
@@ -34,6 +34,7 @@ void quit() // normal exit
if(resetcfg) deletecfg();
else writecfg();
cleanup(NULL);
popscontext();
exit(EXIT_SUCCESS);
}
@@ -406,6 +407,8 @@ int main(int argc, char **argv)
int uprate = 0, maxcl = DEFAULTCLIENTS, scthreshold = -5, port = 0;
const char *sdesc = "", *ip = "", *master = NULL, *passwd = "", *maprot = NULL, *adminpwd = NULL, *srvmsg = NULL;
pushscontext(IEXC_CFG);
#define initlog(s) puts("init: " s)
initing = true;
@@ -622,6 +625,7 @@ int main(int argc, char **argv)
}
#endif
}
quit();
return EXIT_SUCCESS;
}