mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #1565. Construction window now checks to see if it has control of tool before canceling it
This commit is contained in:
parent
97fc78a506
commit
cd07fd5d4e
|
@ -575,8 +575,11 @@ static void window_ride_construction_close(rct_window *w)
|
|||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_FLAGS, uint16) &= ~(1 << 1);
|
||||
|
||||
// In order to cancel the yellow arrow correctly the
|
||||
// selection tool should be cancelled.
|
||||
tool_cancel();
|
||||
// selection tool should be cancelled. Don't do a tool cancel if
|
||||
// another window has already taken control of tool.
|
||||
if (w->classification == RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) &&
|
||||
w->number == RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber))
|
||||
tool_cancel();
|
||||
|
||||
hide_gridlines();
|
||||
|
||||
|
|
Loading…
Reference in New Issue