aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_map.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:42:05 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:42:05 +0100
commite29dd2fa3688e1e96a25af3b651da574af08aa90 (patch)
treecb6486fc91f1b93e61e4dcda25d359095e6aa108 /src/ft_draw_map.c
parentBetter code structure (diff)
download42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip
Splited structs
Diffstat (limited to '')
-rw-r--r--src/ft_draw_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c
index e32b4e9..86865fa 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -6,7 +6,7 @@ static void
{
const float x = plist->pos_x;
const float y = plist->pos_y - 1;
- const uint16_t scale = clist->scale;
+ const uint16_t scale = clist->mlist->scale;
ft_draw_square(
scale + (x * (scale)),
@@ -18,7 +18,7 @@ static void
void
ft_draw_map(char **map, t_cub *clist)
{
- const uint8_t scale = clist->scale;
+ const uint8_t scale = clist->mlist->scale;
size_t x;
size_t y;