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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user