From 5551e3d2c628a6dced769801d37b85272cb19e00 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 5 Apr 2009 08:06:40 +0000 Subject: [PATCH] (svn r15957) -Fix (r4767): Set callback_param1 (var 10) to 1 only when requested. --- src/newgrf_station.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index e961dd87cf..57384b102b 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -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;