diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 21:59:13 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 21:59:13 +0100 |
commit | b135ba89ccceffa88356cc25f256b0cb2adbd88c (patch) | |
tree | 1e87c98d28857abfea2c5199dfdf77516ab28898 /src/ft_extra_keys.c | |
parent | Rework in progress (diff) | |
download | 42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.gz 42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.bz2 42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.xz 42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.tar.zst 42-cub3d-b135ba89ccceffa88356cc25f256b0cb2adbd88c.zip |
The og OOP
Diffstat (limited to 'src/ft_extra_keys.c')
-rw-r--r-- | src/ft_extra_keys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index e99b32f..a78f821 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -71,8 +71,10 @@ int int ft_space_key(t_cub *clist) { - /* TODO: ft_sfx_weapon_fire(3) */ if (clist->plist.fire == 0) + { + clist->sfx[clist->plist.handles_weapon + 7].sfx_play(clist->sfx); clist->plist.fire = 1; + } return (0); } |