From 9e09d56b768deb1c9e0157c398fa8bdd19fba5a9 Mon Sep 17 00:00:00 2001 From: biroder <107300789+biroder@users.noreply.github.com> Date: Wed, 26 Apr 2023 18:22:09 +0300 Subject: [PATCH] Some changes to creating smoke when save point spawned in a shelter --- src/game/npc/ai/misc.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/game/npc/ai/misc.rs b/src/game/npc/ai/misc.rs index 51d12d2..cb60fd2 100644 --- a/src/game/npc/ai/misc.rs +++ b/src/game/npc/ai/misc.rs @@ -195,10 +195,8 @@ impl NPC { if self.direction == Direction::Right { self.npc_flags.set_interactable(false); self.vel_y = -0x200; - } - - //Creates smoke when spawned in a shelter - if state.get_flag(523) { + + //Creates smoke when spawned in a shelter npc_list.create_death_smoke(self.x, self.y, self.display_bounds.right as usize, 3, state, &self.rng); } } @@ -224,7 +222,7 @@ impl NPC { self.action_num = 1; //Creates smoke when spawned in a shelter - if state.get_flag(523) { + if self.direction == Direction::Right { npc_list.create_death_smoke(self.x, self.y, self.display_bounds.right as usize, 3, state, &self.rng); } }