summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-08 17:13:48 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-08 17:13:48 +0000
commit9c1282d283cf5ebe32aa0c4977a5e7684ee94eb2 (patch)
tree2964c1a50ce758807ef32e18d381ad0c76fe2aea
parente4aed988272eee0b6bde40c26f174a977cba3e71 (diff)
downloadopenttd-9c1282d283cf5ebe32aa0c4977a5e7684ee94eb2.tar.xz
(svn r4783) - Newstations: fix graphical bug that affected some stations when a station has a high amount of cargo waiting.
-rw-r--r--newgrf_station.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_station.c b/newgrf_station.c
index a6a470261..aa5b32a53 100644
--- a/newgrf_station.c
+++ b/newgrf_station.c
@@ -420,7 +420,7 @@ static const SpriteGroup *StationResolveReal(const ResolverObject *object, const
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 {