From 12d6d679b0de53387aa927a3f9e2a7518969277e Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 27 Nov 2004 19:53:53 +0000 Subject: [PATCH] (svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position --- train_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_gui.c b/train_gui.c index 6a848f3de8..a9cf35f552 100644 --- a/train_gui.c +++ b/train_gui.c @@ -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; } }