summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-06 20:23:06 +0000
committerfrosch <frosch@openttd.org>2010-01-06 20:23:06 +0000
commit9c4b5e32fa11691946738d82cf8b0879c3574d00 (patch)
tree9ca61a5d6ca862c491d735890e68f4125da3d6fd /src
parent70f96a3dbf536e931eeb49066e59a2e0c1af82b4 (diff)
downloadopenttd-9c4b5e32fa11691946738d82cf8b0879c3574d00.tar.xz
(svn r18745) -Codechange: Assemble custom station foundations into a single bounding box.
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index b66ccafb5..e3cba4b3e 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2397,11 +2397,13 @@ static void DrawTile_Station(TileInfo *ti)
if (!HasFoundationNW(ti->tile, slope, z)) ClrBit(parts, 6);
if (!HasFoundationNE(ti->tile, slope, z)) ClrBit(parts, 7);
+ StartSpriteCombine();
for (int i = 0; i < 8; i++) {
if (HasBit(parts, i)) {
AddSortableSpriteToDraw(image + i, PAL_NONE, ti->x, ti->y, 16, 16, 7, ti->z);
}
}
+ EndSpriteCombine();
}
OffsetGroundSprite(31, 1);