| 436 | } |
| 437 | |
| 438 | BannerElement* MapGetBannerElementAt(const CoordsXYZ& bannerPos, uint8_t position) |
| 439 | { |
| 440 | const auto bannerTilePos = TileCoordsXYZ{ bannerPos }; |
| 441 | for (auto* element : TileElementsView<BannerElement>(bannerPos)) |
| 442 | { |
| 443 | if (element->baseHeight != bannerTilePos.z) |
| 444 | continue; |
| 445 | if (element->GetPosition() != position) |
| 446 | continue; |
| 447 | return element; |
| 448 | } |
| 449 | return nullptr; |
| 450 | } |
| 451 | |
| 452 | /** |
| 453 | * |
no test coverage detected