called for every station each tick */
| 4329 | |
| 4330 | /* called for every station each tick */ |
| 4331 | static void StationHandleSmallTick(BaseStation *st) |
| 4332 | { |
| 4333 | if (st->facilities.Test(StationFacility::Waypoint) || !st->IsInUse()) return; |
| 4334 | |
| 4335 | uint8_t b = st->delete_ctr + 1; |
| 4336 | if (b >= Ticks::STATION_RATING_TICKS) b = 0; |
| 4337 | st->delete_ctr = b; |
| 4338 | |
| 4339 | if (b == 0) UpdateStationRating(Station::From(st)); |
| 4340 | } |
| 4341 | |
| 4342 | void OnTick_Station() |
| 4343 | { |
no test coverage detected