MCPcopy Create free account
hub / github.com/ddnet/ddnet / RemoveDestinationTiles

Function RemoveDestinationTiles

src/tools/map_replace_area.cpp:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void RemoveDestinationTiles(CMapItemLayerTilemap *pTilemap, CTile *pTile, float aaReplaceableArea[2][2])
301{
302 int aaRange[2][2];
303 ConvertToTiles(aaReplaceableArea, aaRange);
304
305 CTile EmptyTile;
306 EmptyTile.m_Index = EmptyTile.m_Flags = EmptyTile.m_Skip = EmptyTile.m_Reserved = 0;
307
308 for(int y = aaRange[1][0]; y < aaRange[1][1]; y++)
309 for(int x = aaRange[0][0]; x < aaRange[0][1]; x++)
310 pTile[x + (y * pTilemap->m_Width)] = EmptyTile;
311}
312
313void ReplaceDestinationTiles(CMapItemLayerTilemap *apTilemap[2], CTile *apTile[2], float aaaReplaceableAreas[2][2][2])
314{

Callers 1

ReplaceAreaTilesFunction · 0.85

Calls 1

ConvertToTilesFunction · 0.85

Tested by

no test coverage detected