aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_set_minimap_scale.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 17:28:01 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 17:28:01 +0100
commit3dd666969d58d7608d25d240a95be84a8bf42394 (patch)
treee3aa66c20eb572561d22f65b3ee16830734df2fe /src/ft_set_minimap_scale.c
parentdoes not compile but new header for structs (diff)
download42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.gz
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.bz2
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.xz
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.zst
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.zip
Divided minimap scale by 4, Makefile update
Diffstat (limited to '')
-rw-r--r--src/ft_set_minimap_scale.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_set_minimap_scale.c b/src/ft_set_minimap_scale.c
index 883e524..0f79d6e 100644
--- a/src/ft_set_minimap_scale.c
+++ b/src/ft_set_minimap_scale.c
@@ -20,4 +20,5 @@ void
? (clist->scale = 1) : 0;
(clist->wlist->y_size < (clist->map_h * clist->scale)) ? (clist->scale =
(clist->wlist->y_size / (uint16_t)clist->map_h) - 1) : 0;
+ (clist->scale >= 10) ? (clist->scale /= 4) : 0;
}