diff --git a/simulator/src/main.rs b/simulator/src/main.rs index cd2f021..fb0a185 100644 --- a/simulator/src/main.rs +++ b/simulator/src/main.rs @@ -116,11 +116,10 @@ impl Robot { if let Some(_) = contact(&pose, &*weapon, p_p , p_c, 0.0).unwrap() { peer.kill(); - if self.weapon.kills_user { - self.kill(); // o7 - } } - + } + if self.weapon.kills_user { + self.kill(); // o7 } }