diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-26 04:14:17 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-26 04:14:17 +0200 |
commit | 25c60873bc767042d244cc42554da3fd79db0966 (patch) | |
tree | 9f8225f33643bc21682fda599a46ef3ca394bf43 /src/control | |
parent | 144d6201929ebd84f48f6ab5b056b3cf1d2dc5af (diff) | |
download | rpgedit-25c60873bc767042d244cc42554da3fd79db0966.tar rpgedit-25c60873bc767042d244cc42554da3fd79db0966.zip |
Reevaluate movement possibilities when a key is released
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/MapContext.cpp | 2 |
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); } ); } |