-
Notifications
You must be signed in to change notification settings - Fork 92
bugfix(selection): Prevent exploits from grouping structures and units #1347
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
bugfix(selection): Prevent exploits from grouping structures and units #1347
Conversation
309d7b8
to
c5297f7
Compare
c5297f7
to
987fcc2
Compare
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
987fcc2
to
58a39bd
Compare
Removed the dependency and have taken the logic out of the for-loop. |
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.
Works as expected.
Although in the future once certain bugs are fixed at their source, we may want to revert these "fixes" since we can allow multi building select for a number of new features, like group sell and group build etc.
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
…group to a unit selection
58a39bd
to
c3fd272
Compare
While EA fixed the group force attack exploit ("scud bug") when one was trying to add a building to a group with units, it was still possible to do the reverse: Add the building to a group. Select a bunch of units and than add-select ('shift') the group to the current selection.
To remedy this, every object in the group needs to be checked for kindof building when getting added to an existing selection.