Skip to content
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

Fix #4795 Sensor Range Bands Not Showing Until Movement Begins. #4946

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

HoneySkull
Copy link
Collaborator

Fixes #4795 - Whenever a unit is selected in the movement phase, the MovementDisplay::selectEntity() call clears the sensor ranges. This fix removes the call to clear the sensor ranges when an entity is selected allowing the sensor range sprite to be drawn be default when the feature is enabled.

Additionally, if a player would toggle off sensor ranges and then select a new entity, the ranges would be cleared due to the feature being toggled off - causing the sensors range to not display when the sensor range is toggled back on. (at least until some event triggers the re-calculation of the ranges.)

@SJuliez SJuliez merged commit ee47daf into MegaMek:master Dec 12, 2023
4 checks passed
@HoneySkull HoneySkull deleted the missing_sensor_range branch January 11, 2024 00:22
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.

[0.49.15] (Minor Visual Bug) Sensor Range Bands Not Showing Until Unit Movement Begins
3 participants