From b2745bb20e4748dc102b04daac4bab9fb4c6a76c Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 22 Feb 2020 20:12:04 +0100 Subject: Drawing some HUD --- src/ft_draw_scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_draw_scene.c') 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); -- cgit v1.2.3