sans l'opion o opti les sames ne s'affichent pas

This commit is contained in:
Hugo LAMY
2019-05-28 13:05:14 +02:00
parent a9e62833bb
commit 77656ba113
7 changed files with 50 additions and 12 deletions

View File

@@ -6,7 +6,7 @@
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/27 20:47:22 by hulamy #+# #+# */
/* Updated: 2019/05/27 19:30:37 by hulamy ### ########.fr */
/* Updated: 2019/05/28 11:56:18 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -94,7 +94,8 @@ void add_remove(unsigned int *map, t_fillist *list, int size)
while (j >= list->position)
{
map[(j - 1) / 32] ^= (mask & tetri << (16 + i)) >> (j - 1);
map[(j - 1) / 32 + 1] ^= (mask & tetri << (16 + i)) << (32 - j) << 1;
if (map[(j - 1) / 32 + 1])
map[(j - 1) / 32 + 1] ^= (mask & tetri << (16 + i)) << (32 - j) << 1;
j -= size;
i -= list->width;
}