Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

fix(gameengine): carry command-line lobby rules into a -netgame match

Olcay Seygane58d14dc9452
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp
index 13098fb0c..9a11941f2 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp
@@ -274,6 +274,9 @@ Bool LANAPI::StartAutomatedGame( AsciiString mapName, Int seed, const UnsignedIn
game->setNext( NULL );
game->setMap( mapName );
+ game->setIncomeSharing( TheGlobalData->m_incomeSharing );
+ game->setTechRespawn( TheGlobalData->m_techRespawn );
+ game->setSupplyPileLimit( TheGlobalData->m_supplyPileLimit );
game->setIsDirectConnect( FALSE );
game->setLastHeard( timeGetTime() );
game->setLocalIP( m_localIP );