File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate
Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
126
126
if (!isAllowedToRespondToAiCommands (parms))
127
127
return ;
128
128
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
+
129
139
// If our hacker is currently packing up his gear, we need to prevent him
130
140
// from moving until completed. In order to accomplish this, we'll detect,
131
141
// then
Original file line number Diff line number Diff line change @@ -126,6 +126,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
126
126
if (!isAllowedToRespondToAiCommands (parms))
127
127
return ;
128
128
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
+
129
139
// If our hacker is currently packing up his gear, we need to prevent him
130
140
// from moving until completed. In order to accomplish this, we'll detect,
131
141
// then
You can’t perform that action at this time.
0 commit comments