diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-11 12:38:21 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-11 12:38:21 +0100 |
commit | b236416db21d03f7749e1c80d5b7abee70ea07d5 (patch) | |
tree | 69d7ddceef69415ec70bf383f1365552b8b8c7e1 /src/ft_draw_hud.c | |
parent | Perfect collision on them traps (diff) | |
download | 42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.gz 42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.bz2 42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.xz 42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.zst 42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.zip |
Pretty cool animation
Diffstat (limited to 'src/ft_draw_hud.c')
-rw-r--r-- | src/ft_draw_hud.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_hud.c b/src/ft_draw_hud.c index 4ae497a..486112d 100644 --- a/src/ft_draw_hud.c +++ b/src/ft_draw_hud.c @@ -65,7 +65,7 @@ static void while (y < clist->wlist.y_size - (clist->mlist.map_h * scl) - 20) { *(int*)(clist->img.ptr + - ((uint8_t)x * 4 + (y * clist->img.sizeline))) = col; + ((uint16_t)x * 4 + (y * clist->img.sizeline))) = col; y++; } y = clist->wlist.y_size - (clist->mlist.map_h * scl) - 45; |