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

Method Increment

src/vehicle.cpp:462–467  ·  view source on GitHub ↗

* Advance the internal state to the next potential vehicle. */

Source from the content-addressed store, hash-verified

460 * Advance the internal state to the next potential vehicle.
461 */
462void VehiclesNearTileXY::Iterator::Increment()
463{
464 assert(this->current_veh != nullptr);
465 this->current_veh = this->current_veh->hash_tile_next;
466 this->SkipEmptyBuckets();
467}
468
469/**
470 * Advance the internal state until we reach a non-empty bucket, or the end.

Callers 3

IteratorClass · 0.95
IteratorClass · 0.95
SkipFalseMatchesMethod · 0.95

Calls 1

SkipEmptyBucketsMethod · 0.95

Tested by

no test coverage detected