diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 22:13:50 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 22:13:50 +0100 |
commit | cccc0c25b903599c081e3216b4fad1b3c7507b28 (patch) | |
tree | cf3292367f16eebe5f1c6cf7445978f095e4eb8f /src/ft_switch_weapons.c | |
parent | The og OOP (diff) | |
download | 42-cub3d-cccc0c25b903599c081e3216b4fad1b3c7507b28.tar.gz 42-cub3d-cccc0c25b903599c081e3216b4fad1b3c7507b28.tar.bz2 42-cub3d-cccc0c25b903599c081e3216b4fad1b3c7507b28.tar.xz 42-cub3d-cccc0c25b903599c081e3216b4fad1b3c7507b28.tar.zst 42-cub3d-cccc0c25b903599c081e3216b4fad1b3c7507b28.zip |
SoundsGoodMan
Diffstat (limited to '')
-rw-r--r-- | src/ft_switch_weapons.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ft_switch_weapons.c b/src/ft_switch_weapons.c new file mode 100644 index 0000000..186f7be --- /dev/null +++ b/src/ft_switch_weapons.c @@ -0,0 +1,30 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_switch_weapons.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:28:55 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:28:55 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <cub3d.h> +#include <stdint.h> + +int8_t + ft_switch_weap_one(t_cub *cl) +{ + cl->sfx[6].sfx_play(cl->sfx); + cl->plist.handles_weapon = 0; + return (0); +} + +int8_t + ft_switch_weap_two(t_cub *cl) +{ + cl->sfx[8].sfx_play(cl->sfx); + cl->plist.handles_weapon = 2; + return (0); +} |