diff options
Diffstat (limited to 'newgrf_station.c')
-rw-r--r-- | newgrf_station.c | 2 |
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 { |