(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
authortron
Sat, 27 Nov 2004 19:53:53 +0000
changeset 517 b1e18b1e480e
parent 516 035c53a7da94
child 518 979bb729efd9
(svn r842) -Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position
train_gui.c
--- a/train_gui.c	Fri Nov 26 22:29:02 2004 +0000
+++ b/train_gui.c	Sat Nov 27 19:53:53 2004 +0000
@@ -372,7 +372,7 @@
 				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;
 		}
 	}