Only need to show the UPnP stuff for Hosts.

master
vexed 2013-10-30 00:11:54 -04:00
parent 4de83bcb7d
commit 43bf1a8b30
1 changed files with 15 additions and 12 deletions

View File

@ -3898,22 +3898,25 @@ bool startMultiOptions(bool bReenter)
addGameOptions();
addChatBox();
char buf[512]={'\0'};
if (NetPlay.bComms)
if (NetPlay.isHost)
{
if (NetPlay.isUPNP)
char buf[512]={'\0'};
if (NetPlay.bComms)
{
ssprintf(buf, _("UPnP detection is in progress..."));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
}
else
{
ssprintf(buf, _("UPnP detection disabled by user. Autoconfig of port 2100 will not happen."));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
if (NetPlay.isUPNP)
{
ssprintf(buf, _("UPnP detection is in progress..."));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
}
else
{
ssprintf(buf, _("UPnP detection disabled by user. Autoconfig of port 2100 will not happen."));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
}
}
ssprintf(buf, _("Press the start hosting button to begin hosting a game."));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
}
ssprintf(buf, _("Press the start hosting button to begin hosting a game."));
addConsoleMessage(buf, DEFAULT_JUSTIFY, NOTIFY_MESSAGE);
// going back to multiop after setting limits up..
if(bReenter && bHosted)