summaryrefslogtreecommitdiff
path: root/newgrf_station.c
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
commit288ffe7f50198c6bf5ef0bd0b668aca28f543487 (patch)
tree2964c1a50ce758807ef32e18d381ad0c76fe2aea /newgrf_station.c
parent7d41c0d7cf43adaee46915b52f502b167d51238b (diff)
downloadopenttd-288ffe7f50198c6bf5ef0bd0b668aca28f543487.tar.xz
(svn r4783) - Newstations: fix graphical bug that affected some stations when a station has a high amount of cargo waiting.
Diffstat (limited to 'newgrf_station.c')
-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 {