Fix stuck popups with Spur

This commit is contained in:
dawnDus 2022-10-17 17:40:30 -04:00
parent 3a756e0ac4
commit 57b2be5211
No known key found for this signature in database
GPG Key ID: 972AABDE81848F21
1 changed files with 6 additions and 6 deletions

View File

@ -289,15 +289,15 @@ impl Player {
if let Some(weapon) = inventory.get_current_weapon() {
if weapon.wtype == WeaponType::Spur {
npc.exp = 0;
} else {
if self.popup.value > 0 {
self.popup.add_value(npc.exp as i16);
} else {
self.popup.set_value(npc.exp as i16);
}
}
}
if self.popup.value > 0 {
self.popup.add_value(npc.exp as i16);
} else {
self.popup.set_value(npc.exp as i16);
}
npc.cond.set_alive(false);
}
// missile pickup