From: Holger Schemel Date: Tue, 28 Nov 2017 08:32:18 +0000 (+0100) Subject: moved function for processing 'follow finger' controls if no events pending X-Git-Tag: 4.1.0.0~43 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7756e32954dd1a5db2a8cd49136d23f4ce46ae1e;p=rocksndiamonds.git moved function for processing 'follow finger' controls if no events pending --- diff --git a/src/events.c b/src/events.c index 0fd37032..bbc21174 100644 --- a/src/events.c +++ b/src/events.c @@ -1931,6 +1931,15 @@ void HandleKey(Key key, int key_status) void HandleNoEvent() { HandleMouseCursor(); + + switch (game_status) + { +#if defined(TARGET_SDL2) + case GAME_MODE_PLAYING: + HandleFollowFinger(-1, -1, -1); + break; +#endif + } } void HandleEventActions() @@ -1962,12 +1971,6 @@ void HandleEventActions() HandleLevelEditorIdle(); break; -#if defined(TARGET_SDL2) - case GAME_MODE_PLAYING: - HandleFollowFinger(-1, -1, -1); - break; -#endif - default: break; }