From 1aba26831b6cb9f8968a840b2ee7470eb63695e6 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Wed, 26 Feb 2025 12:51:24 -0500 Subject: [PATCH] Also allow mouse clicks to stop autowalk. --- gui_fsm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui_fsm.cpp b/gui_fsm.cpp index 02e6601..36e8dde 100644 --- a/gui_fsm.cpp +++ b/gui_fsm.cpp @@ -415,6 +415,10 @@ namespace gui { [&](const sf::Event::KeyPressed &) { $autowalking = false; fmt::println("ABORT AUTOWALK"); + }, + [&](const sf::Event::MouseButtonPressed &) { + $autowalking = false; + fmt::println("ABORT AUTOWALK"); } );