diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 16:20:49 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 16:20:49 +0200 |
| commit | 784b123af41337c57535b80c15fe13b62dfc1e66 (patch) | |
| tree | 1446494c60ae372f1a4f66d72a56c33af74f1b59 /include/objects.h | |
| parent | 9e70ced6b48d627f236af8ea8366c6ed73748ab1 (diff) | |
work
Diffstat (limited to 'include/objects.h')
| -rw-r--r-- | include/objects.h | 5 |
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(); |
