avoid client crash when using the -d flag

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5375 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-15 12:01:47 +00:00
parent e006db9f02
commit 98c1c127bf
+3 -3
View File
@@ -801,7 +801,7 @@ int main(int argc, char **argv)
initing = INIT_RESET;
for(int i = 1; i<argc; i++)
{
// server: ufimNFTLAckyxpDWrXBKIoOnPMVC
// server: ufimNFTLAckyxpDWrXBKIoOnPMVC
if(!scl.checkarg(argv[i]))
{
char *a = &argv[i][2];
@@ -837,7 +837,7 @@ int main(int argc, char **argv)
quitdirectly = true;
}
break;
case 'd': dedicated = true; break;
// case 'd': dedicated = true; break; // FIXME why someone would run a dedicated client?
case 't': fullscreen = atoi(a); break;
case 'w': scr_w = atoi(a); break;
case 'h': scr_h = atoi(a); break;
@@ -873,7 +873,7 @@ int main(int argc, char **argv)
if(enet_initialize()<0) fatal("Unable to initialise network module");
initclient();
initserver(dedicated); // never returns if dedicated
initserver(dedicated); // never returns if dedicated // FIXME crashes if dedicated:: initserver(true) is called inside server.cpp::main
initlog("world");
empty_world(7, true);