Skip to content

Commit

Permalink
omfg you need to free textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic Lord committed Dec 5, 2022
1 parent 7c99d26 commit 2217bb8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
Binary file modified so_long
Binary file not shown.
4 changes: 2 additions & 2 deletions src/drawers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: llord <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/10 12:57:05 by llord #+# #+# */
/* Updated: 2022/11/30 14:42:40 by llord ### ########.fr */
/* Updated: 2022/11/30 17:54:46 by llord ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -37,7 +37,7 @@ static void render_object(t_data *d, t_tile *tile)
{
if (tile->bc->x != 0 && tile->bc->y != 0)
tile->object = put_image(d, tile->bc, ID_SLAB, 0);
else
else
tile->object = put_image(d, tile->bc, ID_CUBE, 0);
}
else if (tile->type == TYPE_PLAYER)
Expand Down
3 changes: 2 additions & 1 deletion src/imagers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: llord <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/10 12:57:05 by llord #+# #+# */
/* Updated: 2022/11/30 12:52:41 by llord ### ########.fr */
/* Updated: 2022/12/05 16:07:12 by llord ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -33,6 +33,7 @@ mlx_image_t *make_image(t_data *d, char *path)

xpm = mlx_load_xpm42(path);
image = mlx_texture_to_image(d->window, &xpm->texture);
mlx_delete_xpm42(xpm);
return (image);
}

Expand Down
6 changes: 3 additions & 3 deletions src/initializers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: llord <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/10 12:57:05 by llord #+# #+# */
/* Updated: 2022/11/30 16:04:58 by llord ### ########.fr */
/* Updated: 2022/12/05 16:08:38 by llord ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -32,8 +32,8 @@ static void set_level_data(t_data *d)
static void set_game_data(t_meta *md)
{
md->lives = 42;
md->difficulty = 4;
md->instability = 4;
md->difficulty = 7;
md->instability = 1;
md->char_limit = 1560;
md->max_size = 76;
md->no_checks = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/randomers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: llord <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/25 09:21:27 by llord #+# #+# */
/* Updated: 2022/11/30 10:41:10 by llord ### ########.fr */
/* Updated: 2022/11/30 17:49:13 by llord ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
2 changes: 1 addition & 1 deletion src/readers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: llord <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/15 14:42:12 by llord #+# #+# */
/* Updated: 2022/11/29 16:21:14 by llord ### ########.fr */
/* Updated: 2022/11/30 17:51:33 by llord ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
2 changes: 1 addition & 1 deletion src/tilers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: llord <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/10 12:57:05 by llord #+# #+# */
/* Updated: 2022/11/30 10:41:30 by llord ### ########.fr */
/* Updated: 2022/11/30 17:53:20 by llord ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down

0 comments on commit 2217bb8

Please sign in to comment.