diff options
| author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-18 16:18:09 +0100 | 
|---|---|---|
| committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-18 16:18:09 +0100 | 
| commit | a25845a1e0c96111f42e96c9c87d33f0c42180bc (patch) | |
| tree | 557039e0285cc74f88506d666bee21308a8d3921 /src/ft_draw_verline.c | |
| parent | Merge branch 'textures_continued' (diff) | |
| download | 42-cub3d-a25845a1e0c96111f42e96c9c87d33f0c42180bc.tar.gz 42-cub3d-a25845a1e0c96111f42e96c9c87d33f0c42180bc.tar.bz2 42-cub3d-a25845a1e0c96111f42e96c9c87d33f0c42180bc.tar.xz 42-cub3d-a25845a1e0c96111f42e96c9c87d33f0c42180bc.tar.zst 42-cub3d-a25845a1e0c96111f42e96c9c87d33f0c42180bc.zip  | |
hmmmmmmmmmmm
Diffstat (limited to '')
| -rw-r--r-- | src/ft_draw_verline.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index 0fad33a..0b97cc5 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -60,7 +60,8 @@ int8_t  	ft_choose_tex(cl);  	while (y <= y2)  	{ -		*(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = (cl->rlist.side) ? 0x0000eeaa : 0x0000ffaa; +		cl->rlist.step_tex_v = 1.0 * cl->tlist[clist->w_side].img_w - cl->rlist.line_h; +		/**(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = (cl->rlist.side) ? 0x2200ffaa : 0x0000ffaa;*/  		y++;  	}  	ft_draw_floor(cl, y, x);  | 
