mirror of https://github.com/OpenTTD/OpenTTD
(svn r17382) -Cleanup: don't set load_unload_time_rem when an aircraft turns in the air as it's not used
parent
070118c5c3
commit
7d25a4014f
|
@ -1048,8 +1048,6 @@ static bool AircraftController(Aircraft *v)
|
||||||
count = UpdateAircraftSpeed(v, speed_limit, hard_limit);
|
count = UpdateAircraftSpeed(v, speed_limit, hard_limit);
|
||||||
if (count == 0) return false;
|
if (count == 0) return false;
|
||||||
|
|
||||||
if (v->load_unload_time_rem != 0) v->load_unload_time_rem--;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
||||||
GetNewVehiclePosResult gp;
|
GetNewVehiclePosResult gp;
|
||||||
|
@ -1072,9 +1070,7 @@ static bool AircraftController(Aircraft *v)
|
||||||
Direction newdir = GetDirectionTowards(v, x + amd->x, y + amd->y);
|
Direction newdir = GetDirectionTowards(v, x + amd->x, y + amd->y);
|
||||||
if (newdir != v->direction) {
|
if (newdir != v->direction) {
|
||||||
v->direction = newdir;
|
v->direction = newdir;
|
||||||
if (amd->flag & AMED_SLOWTURN) {
|
if (!(amd->flag & AMED_SLOWTURN)) {
|
||||||
if (v->load_unload_time_rem == 0) v->load_unload_time_rem = 8;
|
|
||||||
} else {
|
|
||||||
v->cur_speed >>= 1;
|
v->cur_speed >>= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue