MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Map_UpdateWall

Function Map_UpdateWall

src/map.c:376–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376static bool Map_UpdateWall(uint16 packed)
377{
378 Tile *t;
379
380 if (Map_GetLandscapeType(packed) != LST_WALL) return false;
381
382 t = &g_map[packed];
383
384 t->groundTileID = g_mapTileID[packed] & 0x1FF;
385
386 if (Map_IsPositionUnveiled(packed)) t->overlayTileID = g_wallTileID;
387
388 Structure_ConnectWall(packed, true);
389 Map_Update(packed, 0, false);
390
391 return true;
392}
393
394/**
395 * Make an explosion on the given position, of a certain type. All units in the

Callers 1

Map_MakeExplosionFunction · 0.85

Calls 4

Map_GetLandscapeTypeFunction · 0.85
Map_IsPositionUnveiledFunction · 0.85
Structure_ConnectWallFunction · 0.85
Map_UpdateFunction · 0.85

Tested by

no test coverage detected