summaryrefslogtreecommitdiff
path: root/src/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index d6137fd..11e297e 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -59,6 +59,10 @@ void state_t::tick(void)
select.rect[1] = wmouse;
break;
+ case sf::Mouse::Button::Right:
+ game->command(wmouse);
+ break;
+
case sf::Mouse::Button::Middle:
camera.panning = true;
camera.pan_ref = wmouse;