Mercurial > hg > openttd
changeset 12890:9e06160597a2 draft
(svn r17382) -Cleanup: don't set load_unload_time_rem when an aircraft turns in the air as it's not used
author | yexo <yexo@openttd.org> |
---|---|
date | Wed, 02 Sep 2009 15:13:33 +0000 |
parents | ce02387c24d9 |
children | 427288b91ab5 |
files | src/aircraft_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1048,8 +1048,6 @@ count = UpdateAircraftSpeed(v, speed_limit, hard_limit); if (count == 0) return false; - if (v->load_unload_time_rem != 0) v->load_unload_time_rem--; - do { GetNewVehiclePosResult gp; @@ -1072,9 +1070,7 @@ Direction newdir = GetDirectionTowards(v, x + amd->x, y + amd->y); if (newdir != v->direction) { v->direction = newdir; - if (amd->flag & AMED_SLOWTURN) { - if (v->load_unload_time_rem == 0) v->load_unload_time_rem = 8; - } else { + if (!(amd->flag & AMED_SLOWTURN)) { v->cur_speed >>= 1; } }