| 298 | } |
| 299 | |
| 300 | void 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 | |
| 313 | void ReplaceDestinationTiles(CMapItemLayerTilemap *apTilemap[2], CTile *apTile[2], float aaaReplaceableAreas[2][2][2]) |
| 314 | { |
no test coverage detected