From 9e5cb40ab48076deef56358e0352537bd6d818e9 Mon Sep 17 00:00:00 2001 From: Robert Jordan Date: Fri, 8 May 2015 12:14:10 -0400 Subject: [PATCH] Added INPUT_FLAG_VIEWPORT_SCROLLING check Before it was checking if any flags were set, and not just INPUT_FLAG_VIEWPORT_SCROLLING. --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index 39c62a6719..8d1f6a2473 100644 --- a/src/game.c +++ b/src/game.c @@ -244,7 +244,7 @@ void game_update() if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_STATE, uint8) == INPUT_STATE_RESET || RCT2_GLOBAL(RCT2_ADDRESS_INPUT_STATE, uint8) == INPUT_STATE_NORMAL ) { - if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32)) { + if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_VIEWPORT_SCROLLING) { RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) &= ~INPUT_FLAG_VIEWPORT_SCROLLING; break; }