diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-19 14:10:40 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-19 14:10:40 +0000 |
| commit | f44d154d1372597742642596fe91c619613f81ef (patch) | |
| tree | 22eb7aaefc5b1100e6294c7aa2fd63a97758a8cb /src/world.c | |
| parent | f339de8c07647ed4c5d659639f0f3e6c271faf8f (diff) | |
| download | FindThings-f44d154d1372597742642596fe91c619613f81ef.tar.gz FindThings-f44d154d1372597742642596fe91c619613f81ef.tar.bz2 FindThings-f44d154d1372597742642596fe91c619613f81ef.zip | |
Using inventory items
Diffstat (limited to 'src/world.c')
| -rw-r--r-- | src/world.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
