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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameengine): give back the battle plan bonuses
Olcay Seygand9026e083750
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/BattlePlanUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/BattlePlanUpdate.cppindex cc8bc3791..28fb8d646 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/BattlePlanUpdate.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/BattlePlanUpdate.cpp@@ -180,6 +180,12 @@ BattlePlanUpdate::~BattlePlanUpdate( void )TheAudio->removeAudioEvent( m_holdTheLineUnpack.getPlayingHandle() );TheAudio->removeAudioEvent( m_holdTheLinePack.getPlayingHandle() );+ // newInstance'd in the constructor and never given back: one per Strategy Center ever built.+ if( m_bonuses )+ {+ m_bonuses->deleteInstance();+ m_bonuses = NULL;+ }}// ------------------------------------------------------------------------------------------------