MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SkipFalseMatches

Method SkipFalseMatches

src/vehicle.cpp:490–493  ·  view source on GitHub ↗

* Advance the internal state until it reaches a vehicle within the search area. */

Source from the content-addressed store, hash-verified

488 * Advance the internal state until it reaches a vehicle within the search area.
489 */
490void 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.

Callers 3

IteratorClass · 0.95
IteratorClass · 0.95
IteratorMethod · 0.95

Calls 2

IncrementMethod · 0.95
ContainsMethod · 0.45

Tested by

no test coverage detected