From 997be666e37e9494bb92a50521b4b749156a609c Mon Sep 17 00:00:00 2001 From: paramat Date: Wed, 17 Feb 2016 02:39:21 +0000 Subject: Clientmap: Define p_nodes_min/max as v3s32 instead of v3s16 'cam_pos_nodes -/+ box_nodes_d' can exceed the range of v3s16 when a player is near the world edge using a large view range This previously caused world to disappear Create new function getBlocksInViewRange() called from updateDrawList() and renderMap() Correct code style throughout updateDrawList() and renderMap() --- src/clientmap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/clientmap.h') diff --git a/src/clientmap.h b/src/clientmap.h index ae5ab6d35..445f10c97 100644 --- a/src/clientmap.h +++ b/src/clientmap.h @@ -120,6 +120,8 @@ public: return m_box; } + void getBlocksInViewRange(v3s16 cam_pos_nodes, + v3s16 *p_blocks_min, v3s16 *p_blocks_max); void updateDrawList(video::IVideoDriver* driver); void renderMap(video::IVideoDriver* driver, s32 pass); -- cgit v1.2.3