Minor fix

master
Mark 2024-01-26 23:00:05 -08:00
parent 8b3dd588a5
commit 570944cb77
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 3 additions and 2 deletions

View File

@ -130,6 +130,9 @@ impl PhysShip {
}
};
}
// Update this now and not later,
// since autopilot might change controls.
self.last_controls = self.controls.clone();
match self.data.get_state() {
ShipState::Collapsing { .. } => {
@ -378,8 +381,6 @@ impl PhysShip {
self.is_destroyed = true;
}
};
self.last_controls = self.controls.clone();
}
/// Should this ship's data be removed?