Also allow mouse clicks to stop autowalk.

This commit is contained in:
Zed A. Shaw 2025-02-26 12:51:24 -05:00
parent d03abba8e4
commit 1aba26831b

View file

@ -415,6 +415,10 @@ namespace gui {
[&](const sf::Event::KeyPressed &) { [&](const sf::Event::KeyPressed &) {
$autowalking = false; $autowalking = false;
fmt::println("ABORT AUTOWALK"); fmt::println("ABORT AUTOWALK");
},
[&](const sf::Event::MouseButtonPressed &) {
$autowalking = false;
fmt::println("ABORT AUTOWALK");
} }
); );