1
0
Fork 0

Change: Modify IsChainInDepot for ground vehicles.

pull/8480/head
J0anJosep 2020-12-24 01:32:26 +01:00
parent d489e22cfb
commit 421a533fbb
1 changed files with 4 additions and 1 deletions

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;