summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-08 11:25:15 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-08 11:25:15 +0200
commit05a1f8928646e39cb895f9b24f5de16b6bd97f3a (patch)
treeb762aac955d76e892a9940b2cb78da4142b6afb1 /source
parentAdded a profiling option to the VC2008 projects, using the MS standalone profiler (see vc2008/profile_run.cmd for details and usage) (diff)
downloadcuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.tar
cuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.tar.gz
cuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.tar.bz2
cuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.tar.lz
cuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.tar.xz
cuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.tar.zst
cuberite-05a1f8928646e39cb895f9b24f5de16b6bd97f3a.zip
Diffstat (limited to 'source')
-rw-r--r--source/cChunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 597568a76..7b3d20911 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -596,7 +596,7 @@ void cChunk::CreateBlockEntities(void)
{
for (int y = 0; y < Height; y++)
{
- ENUM_BLOCK_ID BlockType = (ENUM_BLOCK_ID)m_BlockTypes[ MakeIndex( x, y, z ) ];
+ ENUM_BLOCK_ID BlockType = (ENUM_BLOCK_ID)m_BlockTypes[ MakeIndexNoCheck( x, y, z ) ];
switch ( BlockType )
{
case E_BLOCK_CHEST:
@@ -644,7 +644,7 @@ void cChunk::CalculateHeightmap()
{
for (int y = Height - 1; y > -1; y--)
{
- int index = MakeIndex( x, y, z );
+ int index = MakeIndexNoCheck( x, y, z );
if (m_BlockTypes[index] != E_BLOCK_AIR)
{
m_HeightMap[x + z * Width] = (unsigned char)y;