diff options
| author | Rudy Bousset <rbousset@z1r3p1.le-101.fr> | 2020-03-05 20:10:32 +0100 | 
|---|---|---|
| committer | Rudy Bousset <rbousset@z1r3p1.le-101.fr> | 2020-03-05 20:10:32 +0100 | 
| commit | fc16107a59e006e30ac8aafceef4246a2db788b7 (patch) | |
| tree | d31edffbf5d25748ce8117043c29bc05cfc657ad | |
| parent | Baleck (diff) | |
| download | 42-cub3d-fc16107a59e006e30ac8aafceef4246a2db788b7.tar.gz 42-cub3d-fc16107a59e006e30ac8aafceef4246a2db788b7.tar.bz2 42-cub3d-fc16107a59e006e30ac8aafceef4246a2db788b7.tar.xz 42-cub3d-fc16107a59e006e30ac8aafceef4246a2db788b7.tar.zst 42-cub3d-fc16107a59e006e30ac8aafceef4246a2db788b7.zip | |
qweqwe
Diffstat (limited to '')
| -rw-r--r-- | src/ft_draw_textures.c | 2 | ||||
| -rw-r--r-- | src/ft_music.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 766c039..c8eacfc 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -29,7 +29,7 @@ void	ft_draw_texture(t_cub *cl, int x, int y, int tex_y)  	if ((dist = cl->rlist.wall_dist) <= 0)  		dist = 0.0001; -	calc = (dist * 0.2); +	calc = (dist * 0.4);  	calc = (calc >= 255) ? (255) : (calc);  	calc = (calc < 1) ? (1) : (calc);  	cl->img.ptr[x * 4 + (cl->img.sizeline * y)] = diff --git a/src/ft_music.c b/src/ft_music.c index 368cb05..aec5e58 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -24,7 +24,7 @@ void  	cl = (t_cub *)vargp;  	cl->isoldmus = 1;  	pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); -	/* while (1) */ +	while (1)  		system(cl->mlist.music_cmd);  	return (NULL);  } | 
