first modifcations for new local game; enabling: uncomment define NEW_LOCAL_GAME in game_defs.h

This commit is contained in:
floty
2014-07-11 18:15:40 +02:00
parent cf60947efc
commit 304eac07a3
9 changed files with 233 additions and 12 deletions
+4
View File
@@ -301,6 +301,7 @@ ServerLobbyThread::AddConnection(boost::shared_ptr<SessionData> sessionData)
netAnnounce->set_latestbetarevision(POKERTH_BETA_REVISION);
switch (GetServerMode()) {
case SERVER_MODE_LAN:
case SERVER_MODE_LAN_LOCAL:
netAnnounce->set_servertype(AnnounceMessage::serverTypeLAN);
break;
case SERVER_MODE_INTERNET_NOAUTH:
@@ -1353,6 +1354,9 @@ ServerLobbyThread::HandleNetPacketCreateGame(boost::shared_ptr<SessionData> sess
session->GetPlayerData()->GetDBId(),
GetGui(),
m_serverConfig));
#ifdef NEW_LOCAL_GAME
if(m_mode == SERVER_MODE_LAN_LOCAL) game->setLanLocal(true);
#endif
game->Init();
// Add game to list of games.