1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Fix: Following canceling

Stop previewing sequence now unfollows the current sprite.
Using the arrow keys in-game cancels following.
Resizing the window no longer cancels following.
This commit is contained in:
Robert Jordan
2017-11-03 12:02:12 -04:00
committed by Aaron van Geffen
parent 298420fd1e
commit 907f18fd69
4 changed files with 16 additions and 9 deletions

View File

@@ -101,6 +101,10 @@ static void game_handle_key_scroll()
const uint8 * keysState = context_get_keys_state();
get_keyboard_map_scroll(keysState, &scrollX, &scrollY);
if (scrollX != 0 || scrollY != 0)
{
window_unfollow_sprite(mainWindow);
}
input_scroll_viewport(scrollX, scrollY);
}