summaryrefslogtreecommitdiff
path: root/src/objects.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-12-24 13:33:15 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-12-24 13:33:15 +0100
commit03930634b437dc390354accd30563050d681a08d (patch)
tree94070275ab4f105eadba830e9d4ac79b8a32e2f1 /src/objects.c
parenteefc69b2c3816ed4c97bf976b7373175b8e7343d (diff)
editor work
Diffstat (limited to 'src/objects.c')
-rw-r--r--src/objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objects.c b/src/objects.c
index 4ba9961..c1335fb 100644
--- a/src/objects.c
+++ b/src/objects.c
@@ -2,7 +2,7 @@
#include "../include/wall_item.h"
box get_box_of_object(platform_window* window, object o) {
- return get_render_box_of_square(window, (vec3f){o.position.x, o.position.y, o.h}, o.size);
+ return get_render_box_of_square(window, (vec3f){o.position.x, o.position.y, o.position.z}, o.size);
}
void render_box_with_outline(box box, color c) {