diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 20:36:04 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 20:36:04 +0100 |
commit | 1a9a3fc486195d7e1cb88bd67e69b58deb8057b9 (patch) | |
tree | dd1cc7dc4dd38845d605e9c390d9f30b30221a88 /src | |
parent | We got three weaps (diff) | |
download | 42-cub3d-1a9a3fc486195d7e1cb88bd67e69b58deb8057b9.tar.gz 42-cub3d-1a9a3fc486195d7e1cb88bd67e69b58deb8057b9.tar.bz2 42-cub3d-1a9a3fc486195d7e1cb88bd67e69b58deb8057b9.tar.xz 42-cub3d-1a9a3fc486195d7e1cb88bd67e69b58deb8057b9.tar.zst 42-cub3d-1a9a3fc486195d7e1cb88bd67e69b58deb8057b9.zip |
Ok great
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_warp_level.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 5418a86..02911b0 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -22,18 +22,20 @@ static void ft_player_keepings(t_cub *cl) { int16_t tmp_life; - uint8_t tmp_has[2]; + uint8_t tmp_has[3]; int8_t tmp_handles; tmp_life = cl->plist.life; tmp_has[0] = cl->plist.has_weapon[0]; tmp_has[1] = cl->plist.has_weapon[1]; + tmp_has[2] = cl->plist.has_weapon[2]; tmp_handles = cl->plist.handles_weapon; cl->plist = ft_init_player(); if (!cl->isdead) cl->plist.life = tmp_life; cl->plist.has_weapon[0] = tmp_has[0]; cl->plist.has_weapon[1] = tmp_has[1]; + cl->plist.has_weapon[2] = tmp_has[2]; cl->plist.handles_weapon = tmp_handles; } |