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

Function IsWholeTrainInsideDepot

src/train_cmd.cpp:1973–1979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971}
1972
1973static bool IsWholeTrainInsideDepot(const Train *v)
1974{
1975 for (const Train *u = v; u != nullptr; u = u->Next()) {
1976 if (u->track != TRACK_BIT_DEPOT || u->tile != v->tile) return false;
1977 }
1978 return true;
1979}
1980
1981/**
1982 * Turn a train around.

Callers 1

ReverseTrainDirectionFunction · 0.85

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected