ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.74k stars 377 forks source link

Adventure map, allow to delete the hero's predefined path on the adventure map regardless the state of the "Hero Movement" button #8924

Open LeHerosInconnu opened 4 months ago

LeHerosInconnu commented 4 months ago

Preliminary checks

Describe the problem requiring a solution

When the selected hero has movement points left, it is possible to delete the hero's predefined path on the adventure map by doing a left click held on the "Hero movement" button. However, when the hero has no more movement points (the "Hero Movement" button is "grayed out"), it is no longer possible to do so. I suggest that it should be possible to delete the hero's predefined path on the adventure map regardless of whether the "Hero Movement" button is "grayed out" or "not grayed out".

In fheroes2:

https://github.com/ihhub/fheroes2/assets/43583994/15a22546-a551-4256-b661-a44a4b71c6ed

Describe the possible solution

Allow to delete the hero's predefined path on the adventure map regardless the state of the "Hero Movement" button.

Additional info

No response

AlexSnowLeo commented 2 months ago

Hi @LeHerosInconnu. This is the expected behavior, am I right?

https://github.com/user-attachments/assets/25c412e4-724d-49b5-9610-eaf09b345ec5

LeHerosInconnu commented 2 months ago

Hello @AlexSnowLeo,

Hi @LeHerosInconnu. This is the expected behavior, am I right?

https://github.com/user-attachments/assets/25c412e4-724d-49b5-9610-eaf09b345ec5

Yes, exactly. :)