aboutsummaryrefslogtreecommitdiff
path: root/src/clientmap.h
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2016-02-17 02:39:21 +0000
committerparamat <mat.gregory@virginmedia.com>2016-02-19 14:51:41 +0000
commit997be666e37e9494bb92a50521b4b749156a609c (patch)
treed2e51070eae5bdc9923b109907d048d061a983a3 /src/clientmap.h
parent1ec1a605d664b42a034cecb9f2e768fab3d738d4 (diff)
downloadminetest-997be666e37e9494bb92a50521b4b749156a609c.tar.gz
minetest-997be666e37e9494bb92a50521b4b749156a609c.tar.bz2
minetest-997be666e37e9494bb92a50521b4b749156a609c.zip
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()
Diffstat (limited to 'src/clientmap.h')
-rw-r--r--src/clientmap.h2
1 files changed, 2 insertions, 0 deletions
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);