Skip to content
Open
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
6 changes: 6 additions & 0 deletions Generals/Code/GameEngine/Source/Common/RTS/Energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ void Energy::removePowerBonus( Object *obj )
if( obj == NULL )
return;

// TheSuperHackers @bugfix Caball009 14/11/2025 Don't remove power bonus for disabled power plants.
#if !RETAIL_COMPATIBLE_CRC
if ( obj->isDisabled() )
return;
#endif

addProduction( -obj->getTemplate()->getEnergyBonus() );

// sanity
Expand Down
6 changes: 6 additions & 0 deletions GeneralsMD/Code/GameEngine/Source/Common/RTS/Energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ void Energy::removePowerBonus( Object *obj )
if( obj == NULL )
return;

// TheSuperHackers @bugfix Caball009 14/11/2025 Don't remove power bonus for disabled power plants.
#if !RETAIL_COMPATIBLE_CRC
if ( obj->isDisabled() )
return;
#endif

addProduction( -obj->getTemplate()->getEnergyBonus() );

// sanity
Expand Down
Loading