Fix --host & --join=IP to work again.

fixes ticket:4094
master
vexed 2013-12-03 21:55:59 -05:00
parent 1f5432d81c
commit 8cba7f3463
1 changed files with 8 additions and 1 deletions

View File

@ -135,15 +135,22 @@ TITLECODE titleLoop(void)
// then check --join and if neither, run the normal game menu.
if( hostlaunch )
{
NetPlay.bComms = true; // use network = true
NetPlay.isUPNP_CONFIGURED = false;
NetPlay.isUPNP_ERROR = false;
ingame.bHostSetup = true;
bMultiPlayer = true;
bMultiMessages = true;
game.type = SKIRMISH; // needed?
NETinit(true);
NETdiscoverUPnPDevices();
game.type = SKIRMISH;
changeTitleMode(MULTIOPTION);
hostlaunch = false; // reset the bool to default state.
}
else if(strlen(iptoconnect) )
{
NetPlay.bComms = true; // use network = true
NETinit(true);
joinGame(iptoconnect, 0);
}
else