From 721b95e073135ad042c50d12b7bafc888634bb28 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 20 Mar 2020 14:53:08 +0100 Subject: Multiple fixes --- src/ft_get_player_spawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_get_player_spawn.c') diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c index 2f8fa0e..0d9018a 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -85,7 +85,8 @@ void ft_get_sprite_spawn(clist); ft_get_trap_spawn(clist); ft_get_heal_spawn(clist); - ft_get_weapon_spawn(clist); + if (clist->isdead == 0) + ft_get_weapon_spawn(clist); return ; } x++; -- cgit v1.2.3