From 63eca2ab8ee33f49decc391d59373ac6069f8dc1 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Wed, 10 May 2023 12:31:36 +0200 Subject: [PATCH] kys michel --- game/dda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game/dda.c b/game/dda.c index f4b6813..ab68061 100644 --- a/game/dda.c +++ b/game/dda.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/05/02 15:49:00 by erey-bet #+# #+# */ -/* Updated: 2023/05/09 14:40:18 by erey-bet ### ########.fr */ +/* Updated: 2023/05/09 15:05:37 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -153,9 +153,10 @@ void draw_texture(t_game *game, t_dda *dda, double x) tex.step = 1.0 * tex.texture->height / dda->line_height; tex.pos = (dda->draw_start - tex.texture->height / 2 + dda->line_height / 2) * tex.step; y = dda->draw_start - 1; - printf("tex.x: %d\n", tex.x); + //printf("tex.x: %d\n", tex.x); while (++y < dda->draw_end) { + //printf("tex.y: %d\n", tex.y); tex.y = (int)tex.pos & (tex.texture->height - 1); tex.pos += tex.step; mlx_put_pixel(game->window, x, y, get_pixel_color(tex.texture, tex.x, tex.y));