changeset 11586:97ba565c6123 draft

(svn r15957) -Fix (r4767): Set callback_param1 (var 10) to 1 only when requested.
author peter1138 <peter1138@openttd.org>
date Sun, 05 Apr 2009 08:06:40 +0000
parents a5688eed8d7a
children e5223082f115
files src/newgrf_station.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -655,7 +655,9 @@
 	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;