(svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use.
authorpeter1138
Wed, 17 Jan 2007 12:57:35 +0000
changeset 5709 b9169cdd6019
parent 5708 4c4c5ec2bed6
child 5710 41372af7f85d
(svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use.
src/station_cmd.cpp
--- a/src/station_cmd.cpp	Wed Jan 17 11:15:51 2007 +0000
+++ b/src/station_cmd.cpp	Wed Jan 17 12:57:35 2007 +0000
@@ -2078,7 +2078,7 @@
 		SpriteID pal;
 
 		image = dtss->image;
-		if (HASBIT(image, SPRITE_MODIFIER_USE_OFFSET)) {
+		if (relocation == 0 || HASBIT(image, SPRITE_MODIFIER_USE_OFFSET)) {
 			image += rti->total_offset;
 		} else {
 			image += relocation;