diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-22 20:12:04 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-22 20:12:04 +0100 |
commit | b2745bb20e4748dc102b04daac4bab9fb4c6a76c (patch) | |
tree | 97da594cbd49cc8ea52949a1d1381a79a0763f11 /src/ft_extra_keys.c | |
parent | New file for HUD (diff) | |
download | 42-cub3d-b2745bb20e4748dc102b04daac4bab9fb4c6a76c.tar.gz 42-cub3d-b2745bb20e4748dc102b04daac4bab9fb4c6a76c.tar.bz2 42-cub3d-b2745bb20e4748dc102b04daac4bab9fb4c6a76c.tar.xz 42-cub3d-b2745bb20e4748dc102b04daac4bab9fb4c6a76c.tar.zst 42-cub3d-b2745bb20e4748dc102b04daac4bab9fb4c6a76c.zip |
Drawing some HUD
Diffstat (limited to '')
-rw-r--r-- | src/ft_extra_keys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index 39a297b..507f808 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -53,14 +53,14 @@ int int ft_f1_key(t_cub *clist) { - if (clist->minimap == 0) + if (clist->ishud == 0) { - clist->minimap = 1; + clist->ishud = 1; ft_draw_scene(clist); } - else if (clist->minimap == 1) + else if (clist->ishud == 1) { - clist->minimap = 0; + clist->ishud = 0; ft_draw_scene(clist); } return (0); |