mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
e8faa5e304
commit
9e5cb40ab4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue