Codefix: avoid mixing C and C++ style arrays

This commit is contained in:
Peter Nelson
2026-05-27 08:34:50 +01:00
committed by rubidium42
parent 2d5c1a9af8
commit f8c8fedad7
+3 -3
View File
@@ -1089,9 +1089,9 @@ static void DrawBridgePillars(const PalSpriteID &psid, const TileInfo *ti, Axis
static constexpr AxisIndexArray<int> back_pillar_offset{0, 9}; ///< sprite position offset of back facing pillar
static const int INF = 1000; ///< big number compared to sprite size
static constexpr AxisIndexArray<SubSprite[2]> half_pillar_sub_sprite{{{
{ { -14, -INF, INF, INF }, { -INF, -INF, -15, INF } }, // X axis, north and south
{ { -INF, -INF, 15, INF }, { 16, -INF, INF, INF } }, // Y axis, north and south
static constexpr AxisIndexArray<std::array<SubSprite, 2>> half_pillar_sub_sprite{{{
{{ { -14, -INF, INF, INF }, { -INF, -INF, -15, INF } }}, // X axis, north and south
{{ { -INF, -INF, 15, INF }, { 16, -INF, INF, INF } }}, // Y axis, north and south
}}};
if (psid.sprite == 0) return;