(svn r4783) - Newstations: fix graphical bug that affected some stations when a station has a high amount of cargo waiting.
authorpeter1138
Mon, 08 May 2006 17:13:48 +0000
changeset 3787 3b0c50f6db0e
parent 3786 ac7ff031ff5f
child 3788 2db4dcd739c7
(svn r4783) - Newstations: fix graphical bug that affected some stations when a station has a high amount of cargo waiting.
newgrf_station.c
--- a/newgrf_station.c	Mon May 08 13:35:25 2006 +0000
+++ b/newgrf_station.c	Mon May 08 17:13:48 2006 +0000
@@ -420,7 +420,7 @@
 
 	if (cargo > statspec->cargo_threshold) {
 		if (group->g.real.num_loading > 0) {
-			set = ((cargo - statspec->cargo_threshold) * group->g.real.num_loading) / (0xfff - statspec->cargo_threshold);
+			set = ((cargo - statspec->cargo_threshold) * group->g.real.num_loading) / (4096 - statspec->cargo_threshold);
 			return group->g.real.loading[set];
 		}
 	} else {