1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-10 13:07:17 +00:00

air hud fix

This commit is contained in:
Alula 2020-12-05 21:51:59 +01:00
parent 1180b81373
commit c7622ea3b0
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -981,8 +981,8 @@ impl GameScene {
fn tick_world(&mut self, state: &mut SharedGameState) -> GameResult {
self.hud_player1.visible = self.player1.cond.alive();
self.hud_player2.visible = self.player2.cond.alive();
self.hud_player1.has_player2 = !self.player2.cond.hidden();
self.hud_player2.has_player2 = self.hud_player1.has_player2;
self.hud_player1.has_player2 = self.player2.cond.alive() && !self.player2.cond.hidden();
self.hud_player2.has_player2 = self.player1.cond.alive() && !self.player1.cond.hidden();
self.player1.current_weapon = {
if let Some(weapon) = self.inventory_player1.get_current_weapon_mut() {