diff options
author | tron <tron@openttd.org> | 2004-11-27 19:53:53 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-27 19:53:53 +0000 |
commit | 12d6d679b0de53387aa927a3f9e2a7518969277e (patch) | |
tree | 4da09d5d6ca082915e545acf2db85053f801e45c | |
parent | 97c533eb9ce73885f3eba113bd1d862adbcb926a (diff) | |
download | openttd-12d6d679b0de53387aa927a3f9e2a7518969277e.tar.xz |
(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
-rw-r--r-- | train_gui.c | 2 |
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; } } |