mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r15957) -Fix (r4767): Set callback_param1 (var 10) to 1 only when requested.
This commit is contained in:
parent
dd24d9524e
commit
2dc1e1aea0
@ -655,7 +655,9 @@ SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Sta
|
||||
ResolverObject object;
|
||||
|
||||
NewStationResolver(&object, statspec, st, tile);
|
||||
if (HasBit(statspec->flags, SSF_SEPARATE_GROUND)) {
|
||||
object.callback_param1 = 1; // Indicate we are resolving the ground sprite
|
||||
}
|
||||
|
||||
group = ResolveStation(&object);
|
||||
if (group == NULL || group->type != SGT_RESULT) return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user