mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +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
@@ -360,6 +360,10 @@ static void window_title_command_editor_mouseup(rct_window * w, rct_widgetindex
|
||||
{
|
||||
tool_set(w, WIDX_BACKGROUND, TOOL_CROSSHAIR);
|
||||
}
|
||||
else
|
||||
{
|
||||
tool_cancel();
|
||||
}
|
||||
break;
|
||||
case WIDX_OKAY:
|
||||
if (_window_title_command_editor_insert)
|
||||
@@ -683,15 +687,9 @@ static void window_title_command_editor_tool_down(rct_window * w, rct_widgetinde
|
||||
{
|
||||
command.SpriteIndex = spriteIndex;
|
||||
window_follow_sprite(w, (size_t)command.SpriteIndex);
|
||||
tool_cancel();
|
||||
window_invalidate(w);
|
||||
}
|
||||
else
|
||||
{
|
||||
command.SpriteIndex = SPRITE_INDEX_NULL;
|
||||
command.SpriteName[0] = '\0';
|
||||
window_unfollow_sprite(w);
|
||||
}
|
||||
tool_cancel();
|
||||
window_invalidate(w);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user