| 397 | }; |
| 398 | |
| 399 | static bool tileHasWater(World::Pos2 pos) |
| 400 | { |
| 401 | if (!World::validCoords(pos)) |
| 402 | { |
| 403 | return false; |
| 404 | } |
| 405 | auto* elSurface = World::TileManager::get(pos).surface(); |
| 406 | if (elSurface->water() == 0) |
| 407 | { |
| 408 | return false; |
| 409 | } |
| 410 | return true; |
| 411 | } |
| 412 | |
| 413 | static currency32_t createPort(const PortPlacementArgs& args, const uint8_t flags) |
| 414 | { |
no test coverage detected