Skip to content

bugfix(input): No longer require two clicks to deselect worker after cancelling building placement in alternate mouse mode#1453

Merged
xezon merged 1 commit intoTheSuperHackers:mainfrom
Stubbjax:fix-double-click-deselection
Aug 14, 2025
Merged

bugfix(input): No longer require two clicks to deselect worker after cancelling building placement in alternate mouse mode#1453
xezon merged 1 commit intoTheSuperHackers:mainfrom
Stubbjax:fix-double-click-deselection

Conversation

@Stubbjax
Copy link

Fixes #1447
Follow-up to #1430

This change disables the "set prevention of left click deselection in alternate mouse mode for one click" logic when cancelling building placement - a leftover side-effect from the improvement introduced with #1430.

The respective setPreventLeftClickDeselectionInAlternateMouseModeForOneClick method is used to prevent a worker from being deselected when placing a structure, which is considered a click on empty terrain that would otherwise deselect the unit. In this case, as building placement has been cancelled, it is set back to false so that clicking an empty area will deselect the worker as expected.

…ing building placement in alternate mouse mode
@xezon xezon added Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project Input labels Aug 14, 2025
@xezon xezon changed the title bugfix: No longer require two clicks to deselect worker after cancelling building placement in alternate mouse mode bugfix(input): No longer require two clicks to deselect worker after cancelling building placement in alternate mouse mode Aug 14, 2025
@xezon xezon merged commit 84aa98c into TheSuperHackers:main Aug 14, 2025
18 checks passed
@Stubbjax Stubbjax deleted the fix-double-click-deselection branch August 15, 2025 02:19
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Feb 23, 2026
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 Input Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Worker unit requires two clicks to become deselected after canceling building placement

2 participants