summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-04-05 08:06:40 +0000
committerpeter1138 <peter1138@openttd.org>2009-04-05 08:06:40 +0000
commit5551e3d2c628a6dced769801d37b85272cb19e00 (patch)
treefc86b4509a8b53573313068cdacbe740d1555b2a /src/newgrf_station.cpp
parent679248fb51b89b51b00eb10dfe58ab7f26606c6d (diff)
downloadopenttd-5551e3d2c628a6dced769801d37b85272cb19e00.tar.xz
(svn r15957) -Fix (r4767): Set callback_param1 (var 10) to 1 only when requested.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index e961dd87c..57384b102 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;