mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
fix integer raycast filters & add simple raycast test
This commit is contained in:
parent
f6e1f23c84
commit
39a4236553
4 changed files with 85 additions and 9 deletions
|
|
@ -269,7 +269,7 @@ static inline voxel* raycast_blocks(
|
|||
const auto& def = blocks.require(voxel->id);
|
||||
if (voxel->id != BLOCK_AIR &&
|
||||
(def.selectable || includeNonSelectable) &&
|
||||
(filter == nullptr || (filter->find(def.rt.id) == filter->end()) ==
|
||||
((filter == nullptr || filter->find(def.rt.id) == filter->end()) ==
|
||||
settings.blocksFilterExcludeMode)) {
|
||||
end = start + t * dir;
|
||||
iend = {ix, iy, iz};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue