changeset 5709:ae0941f46aeb draft

(svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use.
author peter1138 <peter1138@openttd.org>
date Wed, 17 Jan 2007 12:57:35 +0000
parents 3dc3a5375999
children d4f01a5bc2ff
files src/station_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -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;