From f44d154d1372597742642596fe91c619613f81ef Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 19 Jan 2026 07:10:40 -0700 Subject: Using inventory items --- src/world.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index b53fb57..5872688 100644 --- a/src/world.c +++ b/src/world.c @@ -1080,6 +1080,10 @@ void castRayBVH(const World* world, BVHNode node, Ray ray, bool allowAll, { continue; } + if (!world->entities[node.entities[index]].visable) + { + continue; + } else if (world->entities[node.entities[index]].id == ENTITY_NONE) { continue; -- cgit v1.2.3