File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
GeneralsMD/Code/GameEngine/Source/Common/RTS
Generals/Code/GameEngine/Source/Common/RTS Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,12 @@ void Energy::removePowerBonus( Object *obj )
188188 if ( obj == NULL )
189189 return ;
190190
191+ // TheSuperHackers @bugfix Caball009 14/11/2025 Don't remove power bonus for disabled power plants.
192+ #if !RETAIL_COMPATIBLE_CRC
193+ if ( obj->isDisabled () )
194+ return ;
195+ #endif
196+
191197 addProduction ( -obj->getTemplate ()->getEnergyBonus () );
192198
193199 // sanity
Original file line number Diff line number Diff line change @@ -207,6 +207,12 @@ void Energy::removePowerBonus( Object *obj )
207207 if ( obj == NULL )
208208 return ;
209209
210+ // TheSuperHackers @bugfix Caball009 14/11/2025 Don't remove power bonus for disabled power plants.
211+ #if !RETAIL_COMPATIBLE_CRC
212+ if ( obj->isDisabled () )
213+ return ;
214+ #endif
215+
210216 addProduction ( -obj->getTemplate ()->getEnergyBonus () );
211217
212218 // sanity
You can’t perform that action at this time.
0 commit comments