(svn r18745) -Codechange: Assemble custom station foundations into a single bounding box.
This commit is contained in:
@@ -2397,11 +2397,13 @@ static void DrawTile_Station(TileInfo *ti)
|
|||||||
if (!HasFoundationNW(ti->tile, slope, z)) ClrBit(parts, 6);
|
if (!HasFoundationNW(ti->tile, slope, z)) ClrBit(parts, 6);
|
||||||
if (!HasFoundationNE(ti->tile, slope, z)) ClrBit(parts, 7);
|
if (!HasFoundationNE(ti->tile, slope, z)) ClrBit(parts, 7);
|
||||||
|
|
||||||
|
StartSpriteCombine();
|
||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < 8; i++) {
|
||||||
if (HasBit(parts, i)) {
|
if (HasBit(parts, i)) {
|
||||||
AddSortableSpriteToDraw(image + i, PAL_NONE, ti->x, ti->y, 16, 16, 7, ti->z);
|
AddSortableSpriteToDraw(image + i, PAL_NONE, ti->x, ti->y, 16, 16, 7, ti->z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
EndSpriteCombine();
|
||||||
}
|
}
|
||||||
|
|
||||||
OffsetGroundSprite(31, 1);
|
OffsetGroundSprite(31, 1);
|
||||||
|
Reference in New Issue
Block a user