mirror of https://github.com/OpenTTD/OpenTTD.git
(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->u.rail.track == 0x80 &&
|
||||
--row < 0) {
|
||||
area_x += w->hscroll.pos;
|
||||
if (area_x >= 0) area_x += w->hscroll.pos;
|
||||
goto found_it;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue