Skip to content

Commit d778bf3

Browse files
authored
bugfix(battleplanupdate): Prevent using the Bombardment Cannon while switching Battle Plans (#2324)
1 parent 1dab8de commit d778bf3

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Generals/Code/GameEngine/Source/GameLogic/Object/Update/BattlePlanUpdate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ UpdateSleepTime BattlePlanUpdate::update()
370370
{
371371
//It's not centered, and not trying to center, so order it to center.
372372
ai->aiIdle( CMD_FROM_AI );
373+
#if !RETAIL_COMPATIBLE_CRC
374+
// TheSuperHackers @bugfix Stubbjax 19/02/2026 Prevent using the turret while it recenters.
375+
enableTurret(false);
376+
#endif
373377
recenterTurret();
374378
m_centeringTurret = true;
375379
}

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/BattlePlanUpdate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ UpdateSleepTime BattlePlanUpdate::update()
371371
{
372372
//It's not centered, and not trying to center, so order it to center.
373373
ai->aiIdle( CMD_FROM_AI );
374+
#if !RETAIL_COMPATIBLE_CRC
375+
// TheSuperHackers @bugfix Stubbjax 19/02/2026 Prevent using the turret while it recenters.
376+
enableTurret(false);
377+
#endif
374378
recenterTurret();
375379
m_centeringTurret = true;
376380
}

0 commit comments

Comments
 (0)