Skip to content

Commit

Permalink
Mark tiles under skyscrapers as decals
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Apr 12, 2024
1 parent 131055b commit c8acdfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/feature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ bool destroyFeature(FEATURE *psDel, unsigned impactTime)
if (isUrban)
{
psTile->texture = TileNumber_texture(psTile->texture) | RUBBLE_TILE;
SET_TILE_DECAL(psTile);
markTileDirty(b.map.x + width, b.map.y + breadth);
}
auxClearBlocking(b.map.x + width, b.map.y + breadth, AUXBITS_ALL);
Expand All @@ -568,6 +569,7 @@ bool destroyFeature(FEATURE *psDel, unsigned impactTime)
if (isUrban)
{
psTile->texture = TileNumber_texture(psTile->texture) | BLOCKING_RUBBLE_TILE;
SET_TILE_DECAL(psTile);
markTileDirty(b.map.x + width, b.map.y + breadth);
}
}
Expand Down

0 comments on commit c8acdfd

Please sign in to comment.