summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-14 13:37:54 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-14 13:37:54 +0200
commitbae14803b28c4e9641d0e2e7462fdc1e7405c0aa (patch)
tree52292c6c6224d1b7848d803110584d521c30e180 /src/game
parent22f4d8fb0676b2ad139a486a903f9a7c3ff2797d (diff)
Don't update the pie menu if it's closed.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/interface.cpp3
1 files changed, 2 insertions, 1 deletions
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)