diff --git a/src/Spawner/Spawner.Config.cpp b/src/Spawner/Spawner.Config.cpp index cc2bcc41..241f00ee 100644 --- a/src/Spawner/Spawner.Config.cpp +++ b/src/Spawner/Spawner.Config.cpp @@ -83,6 +83,7 @@ void SpawnerConfig::LoadFromINIFile(CCINIClass* pINI) MaxAhead = pINI->ReadInteger(pSettingsSection, "MaxAhead", MaxAhead); PreCalcMaxAhead = pINI->ReadInteger(pSettingsSection, "PreCalcMaxAhead", PreCalcMaxAhead); MaxLatencyLevel = (byte)pINI->ReadInteger(pSettingsSection, "MaxLatencyLevel", (int)MaxLatencyLevel); + ForceMultiplayer = pINI->ReadBool(pSettingsSection, "ForceMultiplayer", ForceMultiplayer); } { // Tunnel Options diff --git a/src/Spawner/Spawner.Config.h b/src/Spawner/Spawner.Config.h index 29f19ff8..97daf30c 100644 --- a/src/Spawner/Spawner.Config.h +++ b/src/Spawner/Spawner.Config.h @@ -121,6 +121,7 @@ class SpawnerConfig int MaxAhead; int PreCalcMaxAhead; byte MaxLatencyLevel; + bool ForceMultiplayer; // Tunnel Options int TunnelId; @@ -192,6 +193,7 @@ class SpawnerConfig , MaxAhead { -1 } , PreCalcMaxAhead { 0 } , MaxLatencyLevel { 0xFF } + , ForceMultiplayer { false } // Tunnel Options , TunnelId { 0 } diff --git a/src/Spawner/Spawner.cpp b/src/Spawner/Spawner.cpp index 192b7f30..4c043e9a 100644 --- a/src/Spawner/Spawner.cpp +++ b/src/Spawner/Spawner.cpp @@ -291,7 +291,7 @@ bool Spawner::StartScenario(const char* pScenarioName) { // Set SessionType if (Spawner::Config->IsCampaign) pSession->GameMode = GameMode::Campaign; - else if (Game::PlayerCount > 1) + else if (Game::PlayerCount > 1 || Spawner::Config->ForceMultiplayer) pSession->GameMode = GameMode::Internet; // HACK: will be set to LAN later else pSession->GameMode = GameMode::Skirmish;