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
+3 -2
View File
@@ -310,7 +310,7 @@ void Session::clientRejoinGame(unsigned gameId)
);
}
void Session::startNetworkServer(bool dedicated)
void Session::startNetworkServer(bool dedicated, bool lan_local)
{
if (myNetServer) {
assert(false);
@@ -325,7 +325,8 @@ void Session::startNetworkServer(bool dedicated)
mode = SERVER_MODE_INTERNET_NOAUTH;
#endif
} else {
mode = SERVER_MODE_LAN;
if(lan_local) mode = SERVER_MODE_LAN_LOCAL;
else mode = SERVER_MODE_LAN;
}
myNetServer = ServerManagerFactory::CreateServerManager(*myConfig, *myGui, mode, *myAvatarManager);