Skip to content

Conversation

@Stubbjax
Copy link

@Stubbjax Stubbjax commented Jul 24, 2025

Centering the camera on a group by double-pressing a group selection hotkey (0 - 9) will now reselect the group if it was deselected.

Technically either one of the two commits fixes the issue. Setting m_lastGroupSelGroup = -1; on global deselect is essentially replicating the existing behaviour of selecting something else (where the last group is also set to -1) - which also allows the group to be selected again - whereas the performSelection logic adjustment acts as more of a safer catch-all in case the selection can be lost by other means.

@Stubbjax Stubbjax force-pushed the fix-double-press-group-selection branch from 6d89917 to 27583db Compare August 1, 2025 03:16
@xezon xezon changed the title [GEN][ZH] Fix double-press group selection logic not reselecting deselected groups fix(controls): Fix double-press group selection logic not reselecting deselected groups Aug 1, 2025
@xezon xezon added the Bug Something is not working right, typically is user facing label Aug 1, 2025
@xezon xezon changed the title fix(controls): Fix double-press group selection logic not reselecting deselected groups bugfix(controls): Fix double-press group selection logic not reselecting deselected groups Aug 1, 2025
@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour labels Aug 1, 2025
@Stubbjax Stubbjax force-pushed the fix-double-press-group-selection branch from 7b445be to 8143cc5 Compare August 2, 2025 13:33
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@xezon xezon merged commit 6ad992f into TheSuperHackers:main Aug 3, 2025
14 checks passed
@Stubbjax Stubbjax deleted the fix-double-press-group-selection branch August 7, 2025 05:55
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centering the camera on a group does not (re)select the group

3 participants