Skip to content

Commit

Permalink
ihhub#8924 fix Hero Movement button
Browse files Browse the repository at this point in the history
to delete hero path always
  • Loading branch information
AlexSnowLeo committed Sep 5, 2024
1 parent d06c348 commit 6f61b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fheroes2/gui/interface_buttons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fheroes2::GameMode Interface::ButtonsArea::QueueEventProcessing()
else if ( buttonHeroMovement.isEnabled() && le.MouseClickLeft( heroMovementRect ) ) {
res = interface.EventHeroMovement();
}
else if ( buttonHeroMovement.isEnabled() && le.MouseLongPressLeft( heroMovementRect ) ) {
else if ( le.MouseLongPressLeft( heroMovementRect ) ) {
interface.EventResetHeroPath();
}
else if ( le.MouseClickLeft( kingdomRect ) ) {
Expand Down

0 comments on commit 6f61b5c

Please sign in to comment.