From 1011ac353b30d33945c5e5ad5f3d52186c829afc Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 11 Feb 2008 12:42:49 +0000 Subject: [PATCH] (svn r12109) -Fix [FS#1745](r8973): use tile index 0 for planes in the air, so it cannot have an invalid tile index --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 7df232fae5..cdad840ab3 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1194,7 +1194,7 @@ static bool AircraftController(Vehicle *v) v->tile = gp.new_tile; /* If vehicle is in the air, use tile coordinate 0. */ - // if (amd->flag & (AMED_TAKEOFF | AMED_SLOWTURN | AMED_LAND)) v->tile = 0; + if (amd->flag & (AMED_TAKEOFF | AMED_SLOWTURN | AMED_LAND)) v->tile = 0; /* Adjust Z for land or takeoff? */ uint z = v->z_pos;