| 374 | } |
| 375 | |
| 376 | static 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 |
no test coverage detected