-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libft & refactor file ierarchy
- Loading branch information
Showing
5 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
Submodule libft
updated
from 8ddf39 to 11c2eb
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -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; | ||
|