summaryrefslogtreecommitdiff
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-11-07 13:50:52 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-11-07 13:52:04 +0100
commitd0be87d32929c42502fb842aa2b0ab0233313b93 (patch)
treec88b88f63d08cbeaec100eff876676f60ddf78ba /src/interface.cpp
parente28a62894f368cccc64932fe83c91f32d7cb7288 (diff)
Refactoring, introduce text.cpp, closer to an actual game.
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;