(svn r12109) -Fix [FS#1745](r8973): use tile index 0 for planes in the air, so it cannot have an invalid tile index
authorsmatz
Mon, 11 Feb 2008 12:42:49 +0000
changeset 8534 5d05519d1c50
parent 8533 921045950feb
child 8535 ef36a2eb9345
(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
--- a/src/aircraft_cmd.cpp	Mon Feb 11 11:21:29 2008 +0000
+++ b/src/aircraft_cmd.cpp	Mon Feb 11 12:42:49 2008 +0000
@@ -1194,7 +1194,7 @@
 
 		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;