-
Notifications
You must be signed in to change notification settings - Fork 86
[GEN][ZH] Fix hacking hackers packing and unpacking when told to hack the internet as part of a group #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms) | |
if (!isAllowedToRespondToAiCommands(parms)) | ||
return; | ||
|
||
// TheSuperHackers @bugfix andrew-2e128 07/03/2025 Hackers pack and unpack unnecessary when selected in a group fixed. - issue #223 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The wording here also needs fixing up along the lines of "prevent hacking hackers packing and unpacking when told to hack the internet as part of a group selection" |
||
if (parms->m_cmd == AICMD_HACK_INTERNET) | ||
{ | ||
if ( getStateMachine()->getCurrentStateID() == HACK_INTERNET || getStateMachine()->getCurrentStateID() == UNPACKING ) | ||
{ | ||
return; | ||
} | ||
} | ||
// end @bugfix | ||
|
||
//If our hacker is currently packing up his gear, we need to prevent him | ||
//from moving until completed. In order to accomplish this, we'll detect, | ||
//then | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,16 @@ void HackInternetAIUpdate::aiDoCommand(const AICommandParms* parms) | |
if (!isAllowedToRespondToAiCommands(parms)) | ||
return; | ||
|
||
// TheSuperHackers @bugfix andrew-2e128 07/03/2025 Hackers pack and unpack unnecessary when selected in a group fixed. - issue #223 | ||
if (parms->m_cmd == AICMD_HACK_INTERNET) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These could also be condensed into a single if statement |
||
{ | ||
if ( getStateMachine()->getCurrentStateID() == HACK_INTERNET || getStateMachine()->getCurrentStateID() == UNPACKING ) | ||
{ | ||
return; | ||
} | ||
} | ||
// end @bugfix | ||
|
||
//If our hacker is currently packing up his gear, we need to prevent him | ||
//from moving until completed. In order to accomplish this, we'll detect, | ||
//then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs wrapping in a #if !RETAIL_COMPATIBLE_CRC block