1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 09:52:44 +01:00

Codechange: use explicit TileIndex constructor for tile 0

This commit is contained in:
Rubidium
2024-12-31 22:44:12 +01:00
committed by rubidium42
parent 562ec74812
commit fd5f6caed4
20 changed files with 48 additions and 48 deletions

View File

@@ -1999,7 +1999,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth, bool
{
if (conditional_depth > v->GetNumOrders()) {
v->current_order.Free();
v->SetDestTile(0);
v->SetDestTile(TileIndex{});
return false;
}
@@ -2093,7 +2093,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth, bool
}
default:
v->SetDestTile(0);
v->SetDestTile(TileIndex{});
return false;
}
@@ -2109,7 +2109,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth, bool
if (order == nullptr) {
v->current_order.Free();
v->SetDestTile(0);
v->SetDestTile(TileIndex{});
return false;
}
@@ -2184,7 +2184,7 @@ bool ProcessOrders(Vehicle *v)
}
v->current_order.Free();
v->SetDestTile(0);
v->SetDestTile(TileIndex{});
return false;
}