From 25c60873bc767042d244cc42554da3fd79db0966 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 26 Sep 2014 04:14:17 +0200 Subject: Reevaluate movement possibilities when a key is released --- src/control/MapContext.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); } ); } -- cgit v1.2.3