diff options
| author | Skipper <[email protected]> | 2025-02-13 22:14:31 +0000 |
|---|---|---|
| committer | Skipper <[email protected]> | 2025-02-13 22:14:31 +0000 |
| commit | ef8f6310745a434317ba0f17875e1cb7db59e5a9 (patch) | |
| tree | 146d130dc946ffff01b5154549f2d26f10539c79 /lib | |
| parent | 1b4f3db2f32ffdef3acb7657f37bca3a51ffe467 (diff) | |
Updated Aircraft.py
Updated to do the prev_life/life swap in the aircraft add_state function.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Aircraft.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Aircraft.py b/lib/Aircraft.py index dd2bbed..5e6e24d 100644 --- a/lib/Aircraft.py +++ b/lib/Aircraft.py @@ -76,7 +76,11 @@ class Aircraft: if packet.player_id != self.id: return None + if self.life == -1: + self.life=packet.life + self.prev_life = self.life + self.life = packet.life self.set_position(packet.position) self.set_attitude(packet.atti) |
