summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-08-17 15:42:36 +0200
committerSmallJoker <mk939@ymail.com>2019-08-23 19:17:43 +0200
commit6ada090bb05d9e6d5961a59f33ff6e104b44061a (patch)
tree632bbefcd414b1707500c79f88de741bb3234aac /src/map.h
parent7d016b4efd279d2ac2bbb84b457bfe6e5d7f4a56 (diff)
downloadminetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.tar.gz
minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.tar.bz2
minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.zip
Occlusion: Check for light_propagates and do mapblock bounds checks
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h
index d26da37a6..232a25ac7 100644
--- a/src/map.h
+++ b/src/map.h
@@ -310,8 +310,9 @@ protected:
// This stores the properties of the nodes on the map.
const NodeDefManager *m_nodedef;
- bool isOccluded(v3s16 pos_origin, v3s16 pos_blockcenter, float step,
- float stepfac, float start_offset, float end_offset, u32 needed_count);
+ bool isOccluded(const v3s16 &pos_camera, const v3s16 &pos_target,
+ const core::aabbox3d<s16> &block_bounds, float step, float stepfac,
+ float offset, u32 needed_count);
private:
f32 m_transforming_liquid_loop_count_multiplier = 1.0f;