Skip to content

Commit e665fd7

Browse files
committed
Hackers pack and unpack unnecessary when selected in a group fixed.
1 parent 808017e commit e665fd7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
126126
if (!isAllowedToRespondToAiCommands(parms))
127127
return;
128128

129+
// TheSuperHackers @bugfix andrew-2e128 07/03/2025 Hackers pack and unpack unnecessary when selected in a group fixed. - issue #223
130+
if (parms->m_cmd == AICMD_HACK_INTERNET)
131+
{
132+
if ( getStateMachine()->getCurrentStateID() == HACK_INTERNET || getStateMachine()->getCurrentStateID() == UNPACKING )
133+
{
134+
return;
135+
}
136+
}
137+
// end @bugfix
138+
129139
//If our hacker is currently packing up his gear, we need to prevent him
130140
//from moving until completed. In order to accomplish this, we'll detect,
131141
//then

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
126126
if (!isAllowedToRespondToAiCommands(parms))
127127
return;
128128

129+
// TheSuperHackers @bugfix andrew-2e128 07/03/2025 Hackers pack and unpack unnecessary when selected in a group fixed. - issue #223
130+
if (parms->m_cmd == AICMD_HACK_INTERNET)
131+
{
132+
if ( getStateMachine()->getCurrentStateID() == HACK_INTERNET || getStateMachine()->getCurrentStateID() == UNPACKING )
133+
{
134+
return;
135+
}
136+
}
137+
// end @bugfix
138+
129139
//If our hacker is currently packing up his gear, we need to prevent him
130140
//from moving until completed. In order to accomplish this, we'll detect,
131141
//then

0 commit comments

Comments
 (0)