| 16 | namespace OpenLoco::GameCommands |
| 17 | { |
| 18 | static World::StationElement* getStationEl(const World::Pos3& pos) |
| 19 | { |
| 20 | auto tile = World::TileManager::get(pos); |
| 21 | for (auto& el : tile) |
| 22 | { |
| 23 | auto* stationEl = el.as<World::StationElement>(); |
| 24 | if (stationEl == nullptr) |
| 25 | { |
| 26 | continue; |
| 27 | } |
| 28 | |
| 29 | if (stationEl->baseHeight() == pos.z) |
| 30 | { |
| 31 | return stationEl; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | return nullptr; |
| 36 | } |
| 37 | |
| 38 | // 0x00494706 |
| 39 | static bool removePortTileElements(const World::Pos3& pos, const uint8_t flags) |
no test coverage detected