From a10a5f138c02f0fff718ad8bfef9df01e5e068d2 Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Sat, 8 Jan 2022 01:56:41 +0100 Subject: [PATCH] remove unreachable in curly boss bullet npc --- src/npc/ai/curly.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npc/ai/curly.rs b/src/npc/ai/curly.rs index 7d0d4b0..7331e24 100644 --- a/src/npc/ai/curly.rs +++ b/src/npc/ai/curly.rs @@ -296,7 +296,7 @@ impl NPC { self.vel_x = self.rng.range(-0x80..0x80); self.vel_y = 0x1000; } - Direction::FacingPlayer => unreachable!(), + Direction::FacingPlayer => (), } self.anim_rect = state.constants.npc.n123_curly_boss_bullet[self.direction as usize];