mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
fix: Initialized textures and perk orders to none for the player
This commit is contained in:
parent
8d229e9c2b
commit
c4e5ff619a
2 changed files with 7 additions and 2 deletions
|
|
@ -6,11 +6,12 @@
|
|||
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/08/06 11:29:14 by kcolin #+# #+# */
|
||||
/* Updated: 2025/09/01 15:36:43 by tchampio ### ########.fr */
|
||||
/* Updated: 2025/09/03 16:37:56 by tchampio ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "player.h"
|
||||
#include "../../libft/includes/libft.h"
|
||||
#include "../map/mapdata.h"
|
||||
#include "../consts.h"
|
||||
|
||||
|
|
@ -61,6 +62,7 @@ void init_player(t_player *player, t_mapdata *map)
|
|||
player->y = map->starty + 0.5;
|
||||
player->health = 100;
|
||||
player->points = 500;
|
||||
ft_bzero(player->perk_order, 3);
|
||||
if (dir == 'N' || dir == 'S')
|
||||
init_lon(player, dir);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue