diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_raycasting.c | 5 | ||||
-rw-r--r-- | src/ft_set_minimap_scale.c | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 1f81840..d36eacf 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -14,10 +14,9 @@ ft_castray(t_cub *clist) uint16_t i; i = 0; - while (i < clist->wlist->size_y) + while (i < clist->wlist->y_size) { - ft_initray(clist. i); - p_s->line + ft_initray(clist, i); i++; } } 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; } |