aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 14:47:33 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 14:47:33 +0100
commit8866ef5699150d0549096efa94fc311ff7a48dc7 (patch)
tree4a03267f7e7f9b399a9ad0536b50ba6a90407e47 /src/ft_draw_map.c
parentMusic is pretty bav (diff)
download42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.gz
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.bz2
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.xz
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.zst
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.zip
Changing stuff
Diffstat (limited to 'src/ft_draw_map.c')
-rw-r--r--src/ft_draw_map.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c
index a334fc1..42f324b 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -16,17 +16,17 @@
static uint16_t
ft_y_offset(t_cub *clist)
{
- return (clist->wlist->y_size
- - (clist->mlist->map_h * clist->mlist->scale)
- + clist->mlist->scale - 1);
+ return (clist.wlist.y_size
+ - (clist.mlist.map_h * clist.mlist.scale)
+ + clist.mlist.scale - 1);
}
static void
ft_draw_player(t_player *plist, t_cub *clist)
{
- const uint16_t scale = clist->mlist->scale;
- const float x = plist->pos_x;
- const float y = plist->pos_y;
+ const uint16_t scale = clist.mlist.scale;
+ const float x = plist.pos_x;
+ const float y = plist.pos_y;
ft_draw_circle(
(scale / 2) + (x * (scale)),
@@ -38,7 +38,7 @@ static void
void
ft_draw_map(char **map, t_cub *clist)
{
- const uint8_t scale = clist->mlist->scale;
+ const uint8_t scale = clist.mlist.scale;
size_t x;
size_t y;
@@ -62,5 +62,5 @@ void
x = 0;
y++;
}
- ft_draw_player(clist->plist, clist);
+ ft_draw_player(clist.plist, clist);
}