0x048FE92
| 538 | |
| 539 | // 0x048FE92 |
| 540 | bool industryNearPosition(const World::Pos2& position, IndustryObjectFlags flags) |
| 541 | { |
| 542 | for (auto& industry : industries()) |
| 543 | { |
| 544 | const auto* industryObj = industry.getObject(); |
| 545 | if (!industryObj->hasFlags(flags)) |
| 546 | { |
| 547 | continue; |
| 548 | } |
| 549 | |
| 550 | auto manhattanDistance = Math::Vector::manhattanDistance2D(World::Pos2{ industry.x, industry.y }, position); |
| 551 | if (manhattanDistance / World::kTileSize < 11) |
| 552 | { |
| 553 | return true; |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | return false; |
| 558 | } |
| 559 | |
| 560 | // 0x004574E8 |
| 561 | void updateProducedCargoStats() |
no test coverage detected