mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r20961) -Cleanup: Remove redundant/duplicate invisibility test. (uni657)
This commit is contained in:
parent
38c350fad5
commit
bcd006e4fc
@ -873,9 +873,6 @@ static int DrawPillarColumn(int z_bottom, int z_top, const PalSpriteID *psid, in
|
|||||||
*/
|
*/
|
||||||
static void DrawBridgePillars(const PalSpriteID *psid, const TileInfo *ti, Axis axis, bool drawfarpillar, int x, int y, int z_bridge)
|
static void DrawBridgePillars(const PalSpriteID *psid, const TileInfo *ti, Axis axis, bool drawfarpillar, int x, int y, int z_bridge)
|
||||||
{
|
{
|
||||||
/* Do not draw bridge pillars if they are invisible */
|
|
||||||
if (IsInvisibilitySet(TO_BRIDGES)) return;
|
|
||||||
|
|
||||||
static const int bounding_box_size[2] = {16, 2}; ///< bounding box size of pillars along bridge direction
|
static const int bounding_box_size[2] = {16, 2}; ///< bounding box size of pillars along bridge direction
|
||||||
static const int back_pillar_offset[2] = { 0, 9}; ///< sprite position offset of back facing pillar
|
static const int back_pillar_offset[2] = { 0, 9}; ///< sprite position offset of back facing pillar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user