summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-27 19:53:53 +0000
committertron <tron@openttd.org>2004-11-27 19:53:53 +0000
commit12d6d679b0de53387aa927a3f9e2a7518969277e (patch)
tree4da09d5d6ca082915e545acf2db85053f801e45c /train_gui.c
parent97c533eb9ce73885f3eba113bd1d862adbcb926a (diff)
downloadopenttd-12d6d679b0de53387aa927a3f9e2a7518969277e.tar.xz
(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c
index 6a848f3de..a9cf35f55 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;
}
}