1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

integrate variable: gInputState

This commit is contained in:
IntelOrca
2016-01-04 22:45:51 +00:00
parent 6f4cf119e7
commit b5069d3809
9 changed files with 55 additions and 49 deletions

View File

@@ -978,7 +978,7 @@ int widget_is_disabled(rct_window *w, int widgetIndex)
int widget_is_pressed(rct_window *w, int widgetIndex)
{
int inputState = RCT2_GLOBAL(RCT2_ADDRESS_INPUT_STATE, uint8);
int inputState = gInputState;
if (w->pressed_widgets & (1LL << widgetIndex))
return 1;