From 784b123af41337c57535b80c15fe13b62dfc1e66 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 30 Apr 2023 16:20:49 +0200 Subject: work --- include/objects.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/objects.h b/include/objects.h index 50cd6f9..d586838 100644 --- a/include/objects.h +++ b/include/objects.h @@ -5,6 +5,8 @@ #include "map.h" +#define MAX_OBJECTS 1000 + typedef struct t_vec3f { float x,y,z; } vec3f; @@ -29,8 +31,7 @@ typedef struct t_box { vec2f br_u; } box; -int max_objects = 150; -object objects[150]; +object objects[MAX_OBJECTS]; object get_object_at_tile(float x, float y); void create_objects(); -- cgit v1.2.3-70-g09d2