| 423 | } |
| 424 | |
| 425 | PathElement* MapGetPathElementAt(const TileCoordsXYZ& loc) |
| 426 | { |
| 427 | for (auto* element : TileElementsView<PathElement>(loc.ToCoordsXY())) |
| 428 | { |
| 429 | if (element->isGhost()) |
| 430 | continue; |
| 431 | if (element->baseHeight != loc.z) |
| 432 | continue; |
| 433 | return element; |
| 434 | } |
| 435 | return nullptr; |
| 436 | } |
| 437 | |
| 438 | BannerElement* MapGetBannerElementAt(const CoordsXYZ& bannerPos, uint8_t position) |
| 439 | { |
no test coverage detected