Clientmap: Define p_nodes_min/max as v3s32 instead of v3s16
authorparamat <mat.gregory@virginmedia.com>
Wed, 17 Feb 2016 02:39:21 +0000 (02:39 +0000)
committerparamat <mat.gregory@virginmedia.com>
Fri, 19 Feb 2016 14:51:41 +0000 (14:51 +0000)
commit997be666e37e9494bb92a50521b4b749156a609c
treed2e51070eae5bdc9923b109907d048d061a983a3
parent1ec1a605d664b42a034cecb9f2e768fab3d738d4
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.cpp
src/clientmap.h