From bae14803b28c4e9641d0e2e7462fdc1e7405c0aa Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 14 Apr 2018 13:37:54 +0200 Subject: Don't update the pie menu if it's closed. --- src/game/interface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/interface.cpp b/src/game/interface.cpp index c366fa8..5b2d7b8 100644 --- a/src/game/interface.cpp +++ b/src/game/interface.cpp @@ -289,7 +289,8 @@ void state_t::tick(double dt) select.rect[1] = wmouse; } - pie_menu.update(mouse); + if (pie_menu.is_open) + pie_menu.update(mouse); } void state_t::print(std::string str) -- cgit