summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-09-02 15:13:33 +0000
committeryexo <yexo@openttd.org>2009-09-02 15:13:33 +0000
commit7d25a4014f316374566ac4006c4db6299ee8c3c5 (patch)
tree3b8b452053a4ad3338761250efb007131e79f7aa /src
parent070118c5c386ed1811bde5d3e39beaf231c3d819 (diff)
downloadopenttd-7d25a4014f316374566ac4006c4db6299ee8c3c5.tar.xz
(svn r17382) -Cleanup: don't set load_unload_time_rem when an aircraft turns in the air as it's not used
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 68ba728b1..18c14105e 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1048,8 +1048,6 @@ static bool AircraftController(Aircraft *v)
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 @@ static bool AircraftController(Aircraft *v)
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;
}
}