File diff r1393:053a1c26ac95 → r1394:275bd5541bae
vehicle.c
Show inline comments
 
@@ -89,25 +89,25 @@ static void *EnsureNoVehicleProcZ(Vehicl
 

	
 
	if (v->tile != ti->tile || v->z_pos != ti->z || v->type == VEH_Disaster)
 
		return NULL;
 

	
 
	VehicleInTheWayErrMsg(v);
 
	return v;
 
}
 

	
 
static inline uint Correct_Z(uint tileh)
 
{
 
	// needs z correction for slope-type graphics that have the NORTHERN tile lowered
 
	// 1, 2, 3, 4, 5, 6 and 7
 
	return (CORRECT_Z(tileh)) ? 8 : 0;
 
	return CorrectZ(tileh) ? 8 : 0;
 
}
 

	
 
uint GetCorrectTileHeight(TileIndex tile)
 
{
 
	return Correct_Z(GetTileSlope(tile, NULL));
 
}
 

	
 
bool EnsureNoVehicleZ(TileIndex tile, byte z)
 
{
 
	TileInfo ti;
 

	
 
	FindLandscapeHeightByTile(&ti, tile);