Add whether the vehicle is non-front to the vehicle pool pointer tag
Add iteration filters which check this
This commit is contained in:
@@ -203,7 +203,7 @@ bool RoadVehiclesAreBuilt()
|
||||
*/
|
||||
bool RoadVehiclesExistOutsideDepots()
|
||||
{
|
||||
for (const RoadVehicle *rv : RoadVehicle::Iterate()) {
|
||||
for (const RoadVehicle *rv : RoadVehicle::IterateFrontOnly()) {
|
||||
if (rv->IsFrontEngine() && !rv->IsChainInDepot()) return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user