Fix tile hash cache check warnings when loading very old savegames

See: #648
This commit is contained in:
Jonathan G Rennison
2024-02-10 23:07:11 +00:00
parent 11f75933bf
commit 3407b3edc0
3 changed files with 9 additions and 1 deletions

View File

@@ -1005,12 +1005,12 @@ static bool AircraftController(Aircraft *v)
int z = GetSlopePixelZ(x, y) + 1 + afc->delta_z;
if (z == v->z_pos) {
v->UpdatePosition();
Vehicle *u = v->Next()->Next();
/* 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;