1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 00:49:11 +00:00

(svn r15957) -Fix (r4767): Set callback_param1 (var 10) to 1 only when requested.

This commit is contained in:
2009-04-05 08:06:40 +00:00
parent 679248fb51
commit 5551e3d2c6

View File

@@ -655,7 +655,9 @@ SpriteID GetCustomStationGroundRelocation(const StationSpec *statspec, const Sta
ResolverObject object;
NewStationResolver(&object, statspec, st, tile);
object.callback_param1 = 1; // Indicate we are resolving the ground sprite
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;