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 @@ -131,6 +131,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
131
131
if (!isAllowedToRespondToAiCommands (parms))
132
132
return ;
133
133
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
+
134
144
// If our hacker is currently packing up his gear, we need to prevent him
135
145
// from moving until completed. In order to accomplish this, we'll detect,
136
146
// then
Original file line number Diff line number Diff line change @@ -131,6 +131,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms)
131
131
if (!isAllowedToRespondToAiCommands (parms))
132
132
return ;
133
133
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
+
134
144
// If our hacker is currently packing up his gear, we need to prevent him
135
145
// from moving until completed. In order to accomplish this, we'll detect,
136
146
// then
You can’t perform that action at this time.
0 commit comments