mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(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:
parent
e4aed98827
commit
9c1282d283
@ -420,7 +420,7 @@ static const SpriteGroup *StationResolveReal(const ResolverObject *object, const
|
|||||||
|
|
||||||
if (cargo > statspec->cargo_threshold) {
|
if (cargo > statspec->cargo_threshold) {
|
||||||
if (group->g.real.num_loading > 0) {
|
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];
|
return group->g.real.loading[set];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user