1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Remove unused variables

This commit is contained in:
Ted John
2016-09-10 15:22:14 +01:00
parent 2299b22cbc
commit f81c394c8b
2 changed files with 9 additions and 17 deletions

View File

@@ -295,21 +295,15 @@ void game_update()
if (gGameSpeed > 1)
continue;
// Possibly smooths viewport scrolling, I don't see a difference though
if (RCT2_GLOBAL(0x009E2D74, uint32) == 1) {
RCT2_GLOBAL(0x009E2D74, uint32) = 0;
break;
} else {
if (gInputState == INPUT_STATE_RESET ||
gInputState == INPUT_STATE_NORMAL
) {
if (gInputFlags & INPUT_FLAG_VIEWPORT_SCROLLING) {
gInputFlags &= ~INPUT_FLAG_VIEWPORT_SCROLLING;
break;
}
} else {
if (gInputState == INPUT_STATE_RESET ||
gInputState == INPUT_STATE_NORMAL
) {
if (gInputFlags & INPUT_FLAG_VIEWPORT_SCROLLING) {
gInputFlags &= ~INPUT_FLAG_VIEWPORT_SCROLLING;
break;
}
} else {
break;
}
}

View File

@@ -1922,10 +1922,8 @@ static void window_ride_init_viewport(rct_window *w)
w->viewport = 0;
viewport_update_pointers();
}
else{
if (RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_FLAGS, uint8) & 0x1)
viewport_flags |= VIEWPORT_FLAG_GRIDLINES;
} else if (gConfigGeneral.always_show_gridlines) {
viewport_flags |= VIEWPORT_FLAG_GRIDLINES;
}
window_event_invalidate_call(w);