mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r14946) -Fix: copying a location from the extra viewport to the main viewport did not cancel vehicle following
This commit is contained in:
parent
3ca73b0c4c
commit
61f19b6e3e
@ -1159,6 +1159,7 @@ public:
|
|||||||
/* set this view to same location. Based on the center, adjusting for zoom */
|
/* set this view to same location. Based on the center, adjusting for zoom */
|
||||||
w->viewport->dest_scrollpos_x = x - (w->viewport->virtual_width - this->viewport->virtual_width) / 2;
|
w->viewport->dest_scrollpos_x = x - (w->viewport->virtual_width - this->viewport->virtual_width) / 2;
|
||||||
w->viewport->dest_scrollpos_y = y - (w->viewport->virtual_height - this->viewport->virtual_height) / 2;
|
w->viewport->dest_scrollpos_y = y - (w->viewport->virtual_height - this->viewport->virtual_height) / 2;
|
||||||
|
w->viewport->follow_vehicle = INVALID_VEHICLE;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case EVW_VIEW_TO_MAIN: { // inverse location button (move this view to same spot as main view) 'Copy Location'
|
case EVW_VIEW_TO_MAIN: { // inverse location button (move this view to same spot as main view) 'Copy Location'
|
||||||
|
Loading…
Reference in New Issue
Block a user