summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-26 04:14:17 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-26 04:14:17 +0200
commit25c60873bc767042d244cc42554da3fd79db0966 (patch)
tree9f8225f33643bc21682fda599a46ef3ca394bf43 /src/control
parent144d6201929ebd84f48f6ab5b056b3cf1d2dc5af (diff)
downloadrpgedit-25c60873bc767042d244cc42554da3fd79db0966.tar
rpgedit-25c60873bc767042d244cc42554da3fd79db0966.zip
Reevaluate movement possibilities when a key is released
Diffstat (limited to 'src/control')
-rw-r--r--src/control/MapContext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/control/MapContext.cpp b/src/control/MapContext.cpp
index 1b0e721..6ba3b6b 100644
--- a/src/control/MapContext.cpp
+++ b/src/control/MapContext.cpp
@@ -43,6 +43,8 @@ MapContext::MapContext(EventBus *eventBus0, InputHandler *inputHandler0, const s
[this] (uint16_t key, bool pressed, uint64_t time) {
if (pressed)
keyPressed(key, time);
+ else
+ movePlayerContinue(time);
}
);
}