Minor changes
This commit is contained in:
@@ -7,22 +7,18 @@
|
||||
|
||||
|
||||
|
||||
class NodeManager
|
||||
class MapBlock
|
||||
{
|
||||
public:
|
||||
int blockX;
|
||||
int blockZ;
|
||||
|
||||
NodeManager()
|
||||
MapBlock()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
virtual ~NodeManager()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void addNode(int id, int meta, int x, int y, int z)
|
||||
{
|
||||
@@ -36,7 +32,7 @@ class NodeManager
|
||||
|
||||
int getNodeAt(int x, int y, int z)
|
||||
{
|
||||
return x < 16 && z < 16 && x >= 0 && z >= 0 ? mapBlock[256 * y + z * 16 + x] : 0;
|
||||
return x < 16 && z < 16 && x >= 0 && z >= 0 ? mapBlock[256 * y + z * 16 + x] : 1;
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -48,7 +44,7 @@ class NodeManager
|
||||
class BlockManager
|
||||
{
|
||||
public:
|
||||
NodeManager mapBlocks[8][8]; // 8 x 8 blocks
|
||||
MapBlock mapBlocks[16][16]; // 8 x 8 blocks
|
||||
|
||||
BlockManager()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user