From 9c1282d283cf5ebe32aa0c4977a5e7684ee94eb2 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 8 May 2006 17:13:48 +0000 Subject: [PATCH] (svn r4783) - Newstations: fix graphical bug that affected some stations when a station has a high amount of cargo waiting. --- newgrf_station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newgrf_station.c b/newgrf_station.c index a6a4702610..aa5b32a53e 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 {