1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 21:19:10 +00:00

Change: Modify IsChainInDepot for ground vehicles.

This commit is contained in:
J0anJosep
2020-12-24 01:32:26 +01:00
parent d489e22cfb
commit 421a533fbb

View File

@@ -197,7 +197,10 @@ bool GroundVehicle<T, Type>::IsChainInDepot() const
/* Check whether the rest is also already trying to enter the depot. */
for (; v != nullptr; v = v->Next()) {
if (!v->T::IsInDepot() || v->tile != this->tile) return false;
if (!v->T::IsInDepot()) return false;
assert(IsDepotTile(v->tile));
assert(IsDepotTile(this->tile));
assert(GetDepotIndex(this->tile) == GetDepotIndex(v->tile));
}
return true;