diff options
author | smatz <smatz@openttd.org> | 2008-02-11 12:42:49 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-11 12:42:49 +0000 |
commit | a9ce2a7122b8140b183a35f2bae3e9b34e85e072 (patch) | |
tree | 38b939859a2e2ff66a3b25914936836ddbf0c297 /src | |
parent | 0f3a5fc99d58c511fa4c6023d0a825a2f5a884ca (diff) | |
download | openttd-a9ce2a7122b8140b183a35f2bae3e9b34e85e072.tar.xz |
(svn r12109) -Fix [FS#1745](r8973): use tile index 0 for planes in the air, so it cannot have an invalid tile index
Diffstat (limited to 'src')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 7df232fae..cdad840ab 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; |