summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/objects.h5
1 files changed, 3 insertions, 2 deletions
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();