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

Method InitPosition

src/tilearea.cpp:356–359  ·  view source on GitHub ↗

* Initialise "position" after "dir" was changed. */

Source from the content-addressed store, hash-verified

354 * Initialise "position" after "dir" was changed.
355 */
356void SpiralTileIterator::InitPosition()
357{
358 this->position = this->extent[this->dir] + this->cur_radius * 2 + 1;
359}
360
361/**
362 * Advance the internal state to the next potential tile.

Callers 2

SpiralTileIteratorMethod · 0.95
IncrementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected