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:
committed by
Aaron van Geffen
parent
298420fd1e
commit
907f18fd69
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user