-
Notifications
You must be signed in to change notification settings - Fork 81
[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
base: main
Are you sure you want to change the base?
[GEN][ZH] Fix hacking hackers packing and unpacking when told to hack the internet as part of a group #399
Conversation
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.
So this does what is intended, it could do with being rebased with main
@@ -131,6 +131,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 comment
The reason will be displayed to describe this comment to others. Learn more.
This needs wrapping in a #if !RETAIL_COMPATIBLE_CRC block
@@ -131,6 +131,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 comment
The reason will be displayed to describe this comment to others. Learn more.
These could also be condensed into a single if statement
514b819
to
e665fd7
Compare
@@ -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 comment
The 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"
The other points still need addressing, we have taken measures to allow fixes to be merged that are not retail compatible by wrapping them in a conditional statement. This way fixes can be merged without affecting retail compatibility till we decide to break it. So the above points still need addressing like bellow #if !RETAIL_COMPATIBLE_CRC
if (parms->m_cmd == AICMD_HACK_INTERNET && ( getStateMachine()->getCurrentStateID() == HACK_INTERNET || getStateMachine()->getCurrentStateID() == UNPACKING ) )
{
return;
}
#endif |
for Both Generals & Generals ZH
This causes mismatch with anyone who does not have the patch.