* Recomputes catchment of all stations. * This will additionally recompute nearby stations for all towns and industries. */ static */
| 532 | * This will additionally recompute nearby stations for all towns and industries. |
| 533 | */ |
| 534 | /* static */ void Station::RecomputeCatchmentForAll() |
| 535 | { |
| 536 | for (Town *t : Town::Iterate()) { t->stations_near.clear(); } |
| 537 | for (Industry *i : Industry::Iterate()) { i->stations_near.clear(); } |
| 538 | for (Station *st : Station::Iterate()) { st->RecomputeCatchment(true); } |
| 539 | } |
| 540 | |
| 541 | /************************************************************************/ |
| 542 | /* StationRect implementation */ |
nothing calls this directly
no test coverage detected