station_cmd.c
changeset 3503 44f50afb0a75
parent 3491 35d747bb5e82
child 3515 86dccaaef457
--- a/station_cmd.c	Tue Apr 11 10:19:50 2006 +0000
+++ b/station_cmd.c	Tue Apr 11 10:45:06 2006 +0000
@@ -1935,7 +1935,7 @@
 	if (image & PALETTE_MODIFIER_COLOR) image |= image_or_modificator;
 
 	// For custom sprites, there's no railtype-based pitching.
-	offset = (image & SPRITE_MASK) < _custom_sprites_base ? rti->total_offset : railtype;
+	offset = (image & SPRITE_MASK) < _custom_sprites_base ? rti->total_offset : GetRailTypeInfo(railtype)->custom_ground_offset;
 	image += offset;
 
 	// station_land array has been increased from 82 elements to 114