aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_map.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_draw_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c
index 4449332..a334fc1 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -24,9 +24,9 @@ static uint16_t
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;
ft_draw_circle(
(scale / 2) + (x * (scale)),