summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-10-18 17:21:56 +0000
committerfrosch <frosch@openttd.org>2008-10-18 17:21:56 +0000
commit5a1df325e288f817cf6e24f642485dae444f8f8e (patch)
tree9039e308f0d1ea5cf472eeac69885f8c155b5db8 /src/station_cmd.cpp
parent2e6894b7bbaeab6296676ad182d200489aa10216 (diff)
downloadopenttd-5a1df325e288f817cf6e24f642485dae444f8f8e.tar.xz
(svn r14488) -Fix: Synchronize drawing of spritelayouts in DrawTileLayout (Houses), IndustryDrawTileLayout, DrawStationTile, DrawTile_Station and DrawTile_Track (Waypoint).
Now transparency options, PALETTE_MODIFIER_TRANSPARENT and SPRITE_MODIFIER_OPAQUE should work for all of them.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 20e9091e5..23503ddbe 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2344,7 +2344,8 @@ static void DrawTile_Station(TileInfo *ti)
!HasBit(image, SPRITE_MODIFIER_OPAQUE) && IsTransparencySet(TO_BUILDINGS)
);
} else {
- AddChildSpriteScreen(image, pal, dtss->delta_x, dtss->delta_y, IsTransparencySet(TO_BUILDINGS));
+ /* For stations and original spritelayouts delta_x and delta_y are signed */
+ AddChildSpriteScreen(image, pal, dtss->delta_x, dtss->delta_y, !HasBit(image, SPRITE_MODIFIER_OPAQUE) && IsTransparencySet(TO_BUILDINGS));
}
}
}