Skip to content

Commit 514b819

Browse files
committed
Hackers pack and unpack unnecessary when selected in a group fixed.
1 parent bf57049 commit 514b819

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
@@ -131,6 +131,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
131131
if (!isAllowedToRespondToAiCommands(parms))
132132
return;
133133

134+
// TheSuperHackers @bugfix andrew-2e128 07/03/2025 Hackers pack and unpack unnecessary when selected in a group fixed. - issue #223
135+
if (parms->m_cmd == AICMD_HACK_INTERNET)
136+
{
137+
if ( getStateMachine()->getCurrentStateID() == HACK_INTERNET || getStateMachine()->getCurrentStateID() == UNPACKING )
138+
{
139+
return;
140+
}
141+
}
142+
// end @bugfix
143+
134144
//If our hacker is currently packing up his gear, we need to prevent him
135145
//from moving until completed. In order to accomplish this, we'll detect,
136146
//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
@@ -131,6 +131,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
131131
if (!isAllowedToRespondToAiCommands(parms))
132132
return;
133133

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

0 commit comments

Comments
 (0)