|
@@ -40,12 +40,13 @@
|
|
|
#include "helpers.hpp"
|
|
|
#include "misc/autoptr.hpp"
|
|
|
#include "road.h"
|
|
|
#include "cargotype.h"
|
|
|
#include "strings.h"
|
|
|
#include "autoslope.h"
|
|
|
#include "transparency.h"
|
|
|
|
|
|
DEFINE_OLD_POOL_GENERIC(Station, Station)
|
|
|
DEFINE_OLD_POOL_GENERIC(RoadStop, RoadStop)
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -2135,28 +2136,28 @@ static void DrawTile_Station(TileInfo *t
|
|
|
image += rti->total_offset;
|
|
|
} else {
|
|
|
image += relocation;
|
|
|
}
|
|
|
|
|
|
SpriteID pal;
|
|
|
if (!HASBIT(_transparent_opt, TO_BUILDINGS) && HASBIT(image, PALETTE_MODIFIER_COLOR)) {
|
|
|
if (!IsTransparencySet(TO_BUILDINGS) && HASBIT(image, PALETTE_MODIFIER_COLOR)) {
|
|
|
pal = palette;
|
|
|
} else {
|
|
|
pal = dtss->pal;
|
|
|
}
|
|
|
|
|
|
if ((byte)dtss->delta_z != 0x80) {
|
|
|
AddSortableSpriteToDraw(
|
|
|
image, pal,
|
|
|
ti->x + dtss->delta_x, ti->y + dtss->delta_y,
|
|
|
dtss->size_x, dtss->size_y,
|
|
|
dtss->size_z, ti->z + dtss->delta_z,
|
|
|
HASBIT(_transparent_opt, TO_BUILDINGS)
|
|
|
IsTransparencySet(TO_BUILDINGS)
|
|
|
);
|
|
|
} else {
|
|
|
AddChildSpriteScreen(image, pal, dtss->delta_x, dtss->delta_y, HASBIT(_transparent_opt, TO_BUILDINGS));
|
|
|
AddChildSpriteScreen(image, pal, dtss->delta_x, dtss->delta_y, IsTransparencySet(TO_BUILDINGS));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image)
|
|
|
{
|