Fix vehicle tile hash not always being immediately updated for aircraft

This commit is contained in:
Jonathan G Rennison
2019-06-08 18:44:12 +01:00
parent 96e5148083
commit 751c5229f1

View File

@@ -955,6 +955,7 @@ static bool AircraftController(Aircraft *v)
/* Increase speed of rotors. When speed is 80, we've landed. */
if (u->cur_speed >= 80) {
ClrBit(v->flags, VAF_HELI_DIRECT_DESCENT);
v->UpdatePosition();
return true;
}
u->cur_speed += 4;
@@ -966,6 +967,8 @@ static bool AircraftController(Aircraft *v)
} else {
SetAircraftPosition(v, v->x_pos, v->y_pos, min(v->z_pos + count, z));
}
} else {
v->UpdatePosition();
}
}
return false;