aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_scene.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-22 20:12:04 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-22 20:12:04 +0100
commitb2745bb20e4748dc102b04daac4bab9fb4c6a76c (patch)
tree97da594cbd49cc8ea52949a1d1381a79a0763f11 /src/ft_draw_scene.c
parentNew file for HUD (diff)
download42-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 'src/ft_draw_scene.c')
-rw-r--r--src/ft_draw_scene.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c
index 3bf453a..b5f2283 100644
--- a/src/ft_draw_scene.c
+++ b/src/ft_draw_scene.c
@@ -23,8 +23,8 @@ void
clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp,
&clist->img.sizeline, &clist->img.endian);
ft_castray(clist);
- if (clist->minimap)
- ft_draw_map(clist->mlist->map, clist);
+ if (clist->ishud)
+ ft_draw_hud(clist);
mlx_put_image_to_window(clist->wlist->wlx,
clist->wlist->winptr, clist->img.img, 0, 0);
mlx_destroy_image(clist->wlist->wlx, clist->img.img);