mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
We need to set ud.multimode before checkcommandline() or fake multiplayer mode doesn't work
git-svn-id: https://svn.eduke32.com/eduke32@242 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d404dd8ead
commit
931df593c1
1 changed files with 7 additions and 6 deletions
|
@ -8932,6 +8932,8 @@ void app_main(int argc,char **argv)
|
||||||
// something different, they get what they asked for
|
// something different, they get what they asked for
|
||||||
Bsprintf(defaultduke3dgrp,"nam.grp");
|
Bsprintf(defaultduke3dgrp,"nam.grp");
|
||||||
Bsprintf(confilename, "nam.con");
|
Bsprintf(confilename, "nam.con");
|
||||||
|
Bsprintf(gametype_names[0],"GRUNTMATCH (SPAWN)");
|
||||||
|
Bsprintf(gametype_names[2],"GRUNTMATCH (NO SPAWN)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getenv("DUKE3DGRP")) duke3dgrp = getenv("DUKE3DGRP");
|
if (getenv("DUKE3DGRP")) duke3dgrp = getenv("DUKE3DGRP");
|
||||||
|
@ -8947,8 +8949,12 @@ void app_main(int argc,char **argv)
|
||||||
copyprotect();
|
copyprotect();
|
||||||
if (cp) return;
|
if (cp) return;
|
||||||
|
|
||||||
|
ud.multimode = 1;
|
||||||
|
|
||||||
checkcommandline(argc,argv);
|
checkcommandline(argc,argv);
|
||||||
|
|
||||||
|
if (netparamcount > 0) _buildargc = (argc -= netparamcount+1); // crop off the net parameters
|
||||||
|
|
||||||
if (VOLUMEALL)
|
if (VOLUMEALL)
|
||||||
loadgroupfiles(duke3ddef);
|
loadgroupfiles(duke3ddef);
|
||||||
|
|
||||||
|
@ -8957,15 +8963,11 @@ void app_main(int argc,char **argv)
|
||||||
if (VOLUMEALL) wm_setapptitle(HEAD2);
|
if (VOLUMEALL) wm_setapptitle(HEAD2);
|
||||||
else wm_setapptitle(HEAD);
|
else wm_setapptitle(HEAD);
|
||||||
|
|
||||||
ud.multimode = 1;
|
|
||||||
|
|
||||||
initprintf("\n");
|
initprintf("\n");
|
||||||
|
|
||||||
if (condebug)
|
if (condebug)
|
||||||
initprintf("CON debugging activated (%d).\n\n",condebug);
|
initprintf("CON debugging activated (%d).\n\n",condebug);
|
||||||
|
|
||||||
if (netparamcount > 0) _buildargc = (argc -= netparamcount+1); // crop off the net parameters
|
|
||||||
|
|
||||||
RegisterShutdownFunction( Shutdown );
|
RegisterShutdownFunction( Shutdown );
|
||||||
|
|
||||||
if (VOLUMEONE) {
|
if (VOLUMEONE) {
|
||||||
|
@ -8974,9 +8976,8 @@ void app_main(int argc,char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
Startup(); // a bunch of stuff including compiling cons
|
Startup(); // a bunch of stuff including compiling cons
|
||||||
if (!loaddefinitionsfile(duke3ddef)) initprintf("Definitions file loaded.\n");
|
|
||||||
|
|
||||||
if (quitevent) return;
|
if (quitevent) return;
|
||||||
|
if (!loaddefinitionsfile(duke3ddef)) initprintf("Definitions file loaded.\n");
|
||||||
|
|
||||||
// initprintf("numplayers=%i\n",numplayers);
|
// initprintf("numplayers=%i\n",numplayers);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue