Update existing assertions to log tile information where suitable

This commit is contained in:
Jonathan G Rennison
2018-07-26 19:13:35 +01:00
parent 5661763d6a
commit 9e1e074c2b
36 changed files with 243 additions and 243 deletions

View File

@@ -2609,9 +2609,9 @@ static void VehicleIncreaseStats(const Vehicle *front)
void Vehicle::BeginLoading()
{
if (this->type == VEH_TRAIN) {
assert(IsTileType(Train::From(this)->GetStationLoadingVehicle()->tile, MP_STATION));
assert_tile(IsTileType(Train::From(this)->GetStationLoadingVehicle()->tile, MP_STATION), Train::From(this)->GetStationLoadingVehicle()->tile);
} else {
assert(IsTileType(this->tile, MP_STATION) || this->type == VEH_SHIP);
assert_tile(IsTileType(this->tile, MP_STATION) || this->type == VEH_SHIP, this->tile);
}
bool no_load_prepare = false;