(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position

This commit is contained in:
tron 2004-11-27 19:53:53 +00:00
parent 97c533eb9c
commit 12d6d679b0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}