(svn r4783) - Newstations: fix graphical bug that affected some stations when a station has a high amount of cargo waiting.

This commit is contained in:
peter1138 2006-05-08 17:13:48 +00:00
parent 7d41c0d7cf
commit 288ffe7f50
1 changed files with 1 additions and 1 deletions

View File

@ -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 {