Skip to content

Commit

Permalink
Update libft & refactor file ierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Iipal committed Jun 13, 2019
1 parent c01fb63 commit 807c2c6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libft
Submodule libft updated from 8ddf39 to 11c2eb
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions srcs/rendering/wolf_torch.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: tmaluh <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/16 22:08:27 by tmaluh #+# #+# */
/* Updated: 2019/06/13 09:46:30 by tmaluh ### ########.fr */
/* Updated: 2019/06/13 10:04:27 by tmaluh ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -31,7 +31,7 @@ void wolf_rendering_torch(t_torch *torch, Uint32 *win_pxls, uint8_t fog_freq)
{
curr_tex_pxl = torch->tex[torch_frame]
.pixels[p.y * torch->tex[torch_frame].surf->w + p.x];
if (curr_tex_pxl != 0xff000000 || curr_tex_pxl != 0x00)
if (curr_tex_pxl != 0xff000000L && curr_tex_pxl != 0x0L)
if (WIN_Y > p.y + torch_shift.y && WIN_X > p.x + torch_shift.x)
win_pxls[(p.y + torch_shift.y)
* WIN_X + (p.x + torch_shift.x)] = curr_tex_pxl;
Expand Down

0 comments on commit 807c2c6

Please sign in to comment.