aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 19:22:34 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 19:22:34 +0100
commit953381e5c1c9ebecc2f43ae0065b0cb381a85cb0 (patch)
treeae245f1eb4be9041f8233b22f6d8eb8e651cdd58 /src/ft_key_events.c
parentNow regimp and sound (diff)
download42-cub3d-953381e5c1c9ebecc2f43ae0065b0cb381a85cb0.tar.gz
42-cub3d-953381e5c1c9ebecc2f43ae0065b0cb381a85cb0.tar.bz2
42-cub3d-953381e5c1c9ebecc2f43ae0065b0cb381a85cb0.tar.xz
42-cub3d-953381e5c1c9ebecc2f43ae0065b0cb381a85cb0.tar.zst
42-cub3d-953381e5c1c9ebecc2f43ae0065b0cb381a85cb0.zip
Bug fixes, now gimp and sound
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 52ef477..8ea5b90 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -43,6 +43,9 @@ int
else if (keycode == FT_TWO_KEY && clist->plist.fire == 0
&& clist->plist.has_weapon[1] == 1 && clist->plist.handles_weapon != 2)
return (ft_switch_weap_two(clist));
+ else if (keycode == FT_THREE_KEY && clist->plist.fire == 0
+ && clist->plist.has_weapon[2] == 1 && clist->plist.handles_weapon != 4)
+ return (ft_switch_weap_three(clist));
ft_insert_key(keycode, clist);
return (0);
}