slight tweak to allow close to fixed to be fixed

This commit is contained in:
Christopher
2023-03-02 18:57:53 +13:00
parent 4644a91024
commit 460dcd7ab4

View File

@@ -85,7 +85,7 @@ impl Enterprise {
pub fn repair_system(&mut self, system: &str, amount: f32) -> bool {
let existing_damage = self.damaged[system];
if existing_damage + amount >= 0.0 {
if existing_damage + amount >= -0.1 {
self.damaged.remove(system);
return true;
}