* Advance the internal state until it reaches a vehicle within the search area. */
| 488 | * Advance the internal state until it reaches a vehicle within the search area. |
| 489 | */ |
| 490 | void VehiclesNearTileXY::Iterator::SkipFalseMatches() |
| 491 | { |
| 492 | while (this->current_veh != nullptr && !this->pos_rect.Contains({this->current_veh->x_pos, this->current_veh->y_pos})) this->Increment(); |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * Iterator constructor. |