From 675e321d8f08833c34f62dd6d132c91bace4bb74 Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Sat, 19 Mar 2022 22:21:21 -0400 Subject: [PATCH] Fixed basu spawn location --- src/npc/ai/egg_corridor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/npc/ai/egg_corridor.rs b/src/npc/ai/egg_corridor.rs index e41136e..73f0f12 100644 --- a/src/npc/ai/egg_corridor.rs +++ b/src/npc/ai/egg_corridor.rs @@ -576,7 +576,7 @@ impl NPC { self.tsc_direction = self.direction as u16; self.npc_flags.set_shootable(true); - self.x = player.x + self.direction.vector_x() * 16 * 0x2000; + self.x = player.x + self.direction.opposite().vector_x() * 16 * 0x2000; self.vel_x = self.direction.vector_x() * 0x2ff; } else { self.anim_rect = Rect::new(0, 0, 0, 0); @@ -1234,7 +1234,7 @@ impl NPC { self.tsc_direction = self.direction as u16; self.npc_flags.set_shootable(true); - self.x = player.x + self.direction.vector_x() * 16 * 0x2000; + self.x = player.x + self.direction.opposite().vector_x() * 16 * 0x2000; self.vel_x = self.direction.vector_x() * 0x2ff; } else { self.anim_rect = Rect::new(0, 0, 0, 0);