NetPlay: Allow building a server without a game

This isn't hooked up in the UI yet, but it will allow us to
basically start the server and chat system without choosing
a game.
This commit is contained in:
Jasper St. Pierre
2013-07-22 04:03:43 -04:00
parent 2631ec3cff
commit 6d463d1b67
3 changed files with 11 additions and 11 deletions

View File

@ -220,8 +220,8 @@ void NetPlaySetupDiag::OnHost(wxCommandEvent&)
npd = new NetPlayDiag(m_parent, m_game_list, game, true);
unsigned long port = 0;
m_host_port_text->GetValue().ToULong(&port);
netplay_ptr = new NetPlayServer(u16(port)
, WxStrToStr(m_nickname_text->GetValue()), npd, game);
netplay_ptr = new NetPlayServer(u16(port), WxStrToStr(m_nickname_text->GetValue()), npd);
netplay_ptr->ChangeGame(game);
if (netplay_ptr->is_connected)
{
#ifdef USE_UPNP