mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r4737) - Newstations: 'real' groups picked the wrong set of loading or loaded sprites
This commit is contained in:
parent
263281ef82
commit
0a16393ffe
|
@ -287,14 +287,14 @@ static const SpriteGroup *StationResolveReal(const ResolverObject *object, const
|
||||||
cargo = min(0xfff, cargo);
|
cargo = min(0xfff, cargo);
|
||||||
|
|
||||||
if (cargo > statspec->cargo_threshold) {
|
if (cargo > statspec->cargo_threshold) {
|
||||||
if (group->g.real.num_loaded > 0) {
|
if (group->g.real.num_loading > 0) {
|
||||||
set = ((cargo - statspec->cargo_threshold) * group->g.real.num_loaded) / (0xfff - statspec->cargo_threshold);
|
set = ((cargo - statspec->cargo_threshold) * group->g.real.num_loading) / (0xfff - statspec->cargo_threshold);
|
||||||
return group->g.real.loaded[set];
|
return group->g.real.loading[set];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (group->g.real.num_loading > 0) {
|
if (group->g.real.num_loaded > 0) {
|
||||||
set = (cargo * group->g.real.num_loading) / (statspec->cargo_threshold + 1);
|
set = (cargo * group->g.real.num_loaded) / (statspec->cargo_threshold + 1);
|
||||||
return group->g.real.loading[set];
|
return group->g.real.loaded[set];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue