Added INPUT_FLAG_VIEWPORT_SCROLLING check

Before it was checking if any flags were set, and not just
INPUT_FLAG_VIEWPORT_SCROLLING.
This commit is contained in:
Robert Jordan 2015-05-08 12:14:10 -04:00
parent e8faa5e304
commit 9e5cb40ab4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}