mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
This commit is contained in:
parent
97c533eb9c
commit
12d6d679b0
@ -372,7 +372,7 @@ static int GetVehicleFromTrainDepotWndPt(Window *w, int x, int y, GetDepotVehicl
|
|||||||
v->tile == w->window_number &&
|
v->tile == w->window_number &&
|
||||||
v->u.rail.track == 0x80 &&
|
v->u.rail.track == 0x80 &&
|
||||||
--row < 0) {
|
--row < 0) {
|
||||||
area_x += w->hscroll.pos;
|
if (area_x >= 0) area_x += w->hscroll.pos;
|
||||||
goto found_it;
|
goto found_it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user