| 1494 | } |
| 1495 | |
| 1496 | void GameState::updateAfterTurbo() |
| 1497 | { |
| 1498 | for (auto &v : this->vehicles) |
| 1499 | { |
| 1500 | if (v.second->city != current_city) |
| 1501 | { |
| 1502 | continue; |
| 1503 | } |
| 1504 | if (v.second->type->aggressiveness > 0) |
| 1505 | { |
| 1506 | continue; |
| 1507 | } |
| 1508 | v.second->update(*this, randBoundsExclusive(rng, (unsigned)0, 20 * TICKS_PER_SECOND)); |
| 1509 | } |
| 1510 | } |
| 1511 | |
| 1512 | void GameState::updateBeforeBattle() |
| 1513 | { |
no test coverage detected