feat: allocate screen_matrix on the heap

This commit is contained in:
Khaïs COLIN 2025-07-31 13:17:27 +02:00
parent 8d0a6d841b
commit e625e254f7
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
7 changed files with 30 additions and 36 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:59:37 by kcolin #+# #+# */
/* Updated: 2025/07/30 16:07:36 by tchampio ### ########.fr */
/* Updated: 2025/07/31 13:23:32 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -27,7 +27,7 @@ typedef struct s_cub3d_data
t_mapdata *map;
t_player player;
t_keypresses keypresses;
int screen_matrix[HEIGHT][WIDTH];
int *screen_matrix;
} t_cub3d_data;
#endif // CUB3D_DATA_H