Skip to content

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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
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
1 participant