aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 14:53:08 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 14:53:08 +0100
commit721b95e073135ad042c50d12b7bafc888634bb28 (patch)
tree5c9c2e8e0e91091bcad134f3db6418b704124c88 /src/ft_warp_level.c
parentBetter balance (diff)
download42-cub3d-721b95e073135ad042c50d12b7bafc888634bb28.tar.gz
42-cub3d-721b95e073135ad042c50d12b7bafc888634bb28.tar.bz2
42-cub3d-721b95e073135ad042c50d12b7bafc888634bb28.tar.xz
42-cub3d-721b95e073135ad042c50d12b7bafc888634bb28.tar.zst
42-cub3d-721b95e073135ad042c50d12b7bafc888634bb28.zip
Multiple fixes
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index 4618766..ca7801b 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -55,8 +55,6 @@ static void
cl->plist = ft_init_player();
if (!cl->isdead)
cl->plist.life = tmp_life;
- else
- cl->isdead = 0;
cl->plist.has_weapon[0] = tmp_has[0];
cl->plist.has_weapon[1] = tmp_has[1];
cl->plist.handles_weapon = tmp_handles;
@@ -146,6 +144,7 @@ int8_t
return (-1);
ft_parse_map(next_path, cl);
ft_treat_music(isoldmus, tmp_mup, cl);
+ cl->isdead = (cl->isdead == 1) ? (0) : (cl->isdead);
if (isoldmus)
ft_memdel((void*)&tmp_mup);
ft_wall_tex_init(cl);