File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object
Generals/Code/GameEngine/Source/GameLogic/Object Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3321,7 +3321,12 @@ void Object::onDisabledEdge(Bool becomingDisabled)
3321
3321
// We will need to adjust power ... somehow ...
3322
3322
Int powerToAdjust = getTemplate ()->getEnergyProduction ();
3323
3323
3324
- if ( powerToAdjust > 0 )
3324
+ // TheSuperHackers @bugfix Caball009 18/07/2025 Don't adjust the power for power plants that are still under construction.
3325
+ #if !RETAIL_COMPATIBLE_CRC
3326
+ if ( powerToAdjust > 0 && !testStatus (OBJECT_STATUS_UNDER_CONSTRUCTION) )
3327
+ #else
3328
+ if ( powerToAdjust > 0 )
3329
+ #endif
3325
3330
{
3326
3331
// We can't affect something that consumes, or else we go low power which removes the consumption
3327
3332
// which makes us not low power so we add the consumption so we go low power...
Original file line number Diff line number Diff line change @@ -3841,7 +3841,12 @@ void Object::onDisabledEdge(Bool becomingDisabled)
3841
3841
// We will need to adjust power ... somehow ...
3842
3842
Int powerToAdjust = getTemplate ()->getEnergyProduction ();
3843
3843
3844
- if ( powerToAdjust > 0 )
3844
+ // TheSuperHackers @bugfix Caball009 18/07/2025 Don't adjust the power for power plants that are still under construction.
3845
+ #if !RETAIL_COMPATIBLE_CRC
3846
+ if ( powerToAdjust > 0 && !testStatus (OBJECT_STATUS_UNDER_CONSTRUCTION) )
3847
+ #else
3848
+ if ( powerToAdjust > 0 )
3849
+ #endif
3845
3850
{
3846
3851
// We can't affect something that consumes, or else we go low power which removes the consumption
3847
3852
// which makes us not low power so we add the consumption so we go low power...
You can’t perform that action at this time.
0 commit comments