fix zombie curly corpses not despawning (fixes #137) (#140)

This commit is contained in:
József Sallai 2022-06-07 21:48:43 +03:00 committed by GitHub
parent 987c857b1c
commit d7face2544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -509,9 +509,12 @@ impl NPC {
npc.cond.set_alive(true);
npc.x = self.x;
npc.y = self.y;
*self = npc;
let _ = npc_list.spawn(0x100, npc.clone());
state.sound_manager.play_sfx(72);
npc_list.create_death_smoke(self.x, self.y, 0, 1, state, &self.rng);
self.cond.set_alive(false);
}
self.anim_rect = state.constants.npc.n367_curly_clone_incubator;