Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Spawner/Spawner.Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/Spawner/Spawner.Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class SpawnerConfig
int MaxAhead;
int PreCalcMaxAhead;
byte MaxLatencyLevel;
bool ForceMultiplayer;

// Tunnel Options
int TunnelId;
Expand Down Expand Up @@ -192,6 +193,7 @@ class SpawnerConfig
, MaxAhead { -1 }
, PreCalcMaxAhead { 0 }
, MaxLatencyLevel { 0xFF }
, ForceMultiplayer { false }

// Tunnel Options
, TunnelId { 0 }
Expand Down
2 changes: 1 addition & 1 deletion src/Spawner/Spawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading