diff src/station_cmd.cpp @ 8571:b611278e4fed draft

(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
author frosch <frosch@openttd.org>
date Fri, 15 Feb 2008 18:40:42 +0000
parents 2b1397dd930a
children ed1fec953237
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2170,7 +2170,7 @@
 			}
 		}
 	} else {
-		SpriteID image = t->ground_sprite;
+		SpriteID image = t->ground.sprite;
 		if (HasBit(image, SPRITE_MODIFIER_USE_OFFSET)) {
 			image += GetCustomStationGroundRelocation(statspec, st, ti->tile);
 			image += custom_ground_offset;
@@ -2229,11 +2229,11 @@
 		total_offset = rti->total_offset;
 	}
 
-	SpriteID img = t->ground_sprite;
+	SpriteID img = t->ground.sprite;
 	DrawSprite(img + total_offset, HasBit(img, PALETTE_MODIFIER_COLOR) ? pal : PAL_NONE, x, y);
 
 	if (roadtype == ROADTYPE_TRAM) {
-		DrawSprite(SPR_TRAMWAY_TRAM + (t->ground_sprite == SPR_ROAD_PAVED_STRAIGHT_X ? 1 : 0), PAL_NONE, x, y);
+		DrawSprite(SPR_TRAMWAY_TRAM + (t->ground.sprite == SPR_ROAD_PAVED_STRAIGHT_X ? 1 : 0), PAL_NONE, x, y);
 	}
 
 	const DrawTileSeqStruct *dtss;