aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ft_check_missing.c4
-rw-r--r--src/ft_key_loop.c1
-rw-r--r--src/ft_tex_init.c6
-rw-r--r--src/ft_tex_sprites_extra_init.c6
4 files changed, 8 insertions, 9 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c
index a0cb16f..4fec8bb 100644
--- a/src/ft_check_missing.c
+++ b/src/ft_check_missing.c
@@ -25,10 +25,10 @@ static int
if (clist->mlist.istraps && !clist->mlist.traps_path[0])
return (ft_missing_error(FT_ERR_MISS_TRAP, clist));
if (ft_check_not_found(FT_WEAPON_ONE_SPR_PATH) < 0 ||
- ft_check_ext(FT_WEAPON_ONE_SPR_PATH, ".xpm") < 0)
+ ft_check_ext(FT_WEAPON_ONE_SPR_PATH, ".xpm") < 0)
return (ft_missing_error(FT_ERR_MISS_W_ONE_SPR, clist));
if (ft_check_not_found(FT_WEAPON_TWO_SPR_PATH) < 0 ||
- ft_check_ext(FT_WEAPON_TWO_SPR_PATH, ".xpm") < 0)
+ ft_check_ext(FT_WEAPON_TWO_SPR_PATH, ".xpm") < 0)
return (ft_missing_error(FT_ERR_MISS_W_TWO_SPR, clist));
i = 0;
while ((i + 2) <= clist->mlist.topsp)
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index a59a80c..281c81e 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -32,7 +32,6 @@ int
ft_handle_keys(i, old_y, old_x, cl);
i++;
}
- /* TODO: Don't kill me so fast */
ft_check_bad_boy_shoot(cl);
cl->moves = (cl->key_input[0] == -1) ? (0) : (cl->moves);
begin_frame = clock();
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c
index c034ce3..4e20f62 100644
--- a/src/ft_tex_init.c
+++ b/src/ft_tex_init.c
@@ -103,19 +103,19 @@ static void
cl->tlist[17].img = mlx_xpm_file_to_image(cl->wlist.wlx,
FT_HEAL_PACK_PATH, &cl->tlist[17].img_w, &cl->tlist[17].img_h);
cl->tlist[17].ptr = mlx_get_data_addr(cl->tlist[17].img,
- &cl->tlist[17].bpp, &cl->tlist[17].sizeline, &cl->tlist[17].endian);
+ &cl->tlist[17].bpp, &cl->tlist[17].sizeline, &cl->tlist[17].endian);
}
else
{
cl->tlist[17].img = mlx_xpm_file_to_image(cl->wlist.wlx,
FT_WHISK_PACK_PATH, &cl->tlist[17].img_w, &cl->tlist[17].img_h);
cl->tlist[17].ptr = mlx_get_data_addr(cl->tlist[17].img,
- &cl->tlist[17].bpp, &cl->tlist[17].sizeline, &cl->tlist[17].endian);
+ &cl->tlist[17].bpp, &cl->tlist[17].sizeline, &cl->tlist[17].endian);
}
}
ft_wall_tex_init_more_bonus(cl);
}
-
+
static void
ft_wall_tex_init_bonus(t_cub *cl)
{
diff --git a/src/ft_tex_sprites_extra_init.c b/src/ft_tex_sprites_extra_init.c
index 84684be..855d9f7 100644
--- a/src/ft_tex_sprites_extra_init.c
+++ b/src/ft_tex_sprites_extra_init.c
@@ -16,11 +16,11 @@
#include <mlx.h>
void
- ft_next_sprite_init(t_cub *cl)
+ ft_next_sprite_init(t_cub *cl)
{
- uint8_t i;
+ uint8_t i;
- i = 1;
+ i = 1;
while (cl->mlist.sprite_path[i][0])
{
cl->tlist[i + 7].img = mlx_xpm_file_to_image(cl->wlist.wlx,