Skip to content

Commit 5409558

Browse files
committed
tweak: Defer guard commands during reload
1 parent bc21970 commit 5409558

File tree

2 files changed

+10
-0
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate
  • Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate

2 files changed

+10
-0
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/JetAIUpdate.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,11 @@ Bool JetAIUpdate::shouldDeferCommand(const AICommandType commandType) const
23542354
if (commandType == AICMD_IDLE && currentState == RELOAD_AMMO)
23552355
return true;
23562356

2357+
#if !RETAIL_COMPATIBLE_CRC
2358+
if (isGuardCommand(commandType) && currentState == RELOAD_AMMO)
2359+
return true;
2360+
#endif
2361+
23572362
return false;
23582363
}
23592364

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/JetAIUpdate.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,6 +2589,11 @@ Bool JetAIUpdate::shouldDeferCommand(const AICommandType commandType) const
25892589
if (commandType == AICMD_IDLE && currentState == RELOAD_AMMO)
25902590
return true;
25912591

2592+
#if !RETAIL_COMPATIBLE_CRC
2593+
if (isGuardCommand(commandType) && currentState == RELOAD_AMMO)
2594+
return true;
2595+
#endif
2596+
25922597
return false;
25932598
}
25942599

0 commit comments

Comments
 (0)