Removed hard size limit.

This commit is contained in:
Miroslav Bendík 2012-11-24 18:43:48 +01:00
parent cff944bd2b
commit 5969c61e54
2 changed files with 0 additions and 8 deletions

@ -248,9 +248,6 @@ void TileGenerator::loadBlocks()
if(result == SQLITE_ROW) { if(result == SQLITE_ROW) {
sqlite3_int64 blocknum = sqlite3_column_int64(statement, 0); sqlite3_int64 blocknum = sqlite3_column_int64(statement, 0);
BlockPos pos = decodeBlockPos(blocknum); BlockPos pos = decodeBlockPos(blocknum);
if (pos.x > SectorXMax || pos.x < SectorXMin || pos.z > SectorZMax || pos.z < SectorZMin) {
continue;
}
if (pos.x < m_xMin) { if (pos.x < m_xMin) {
m_xMin = pos.x; m_xMin = pos.x;
} }

@ -133,11 +133,6 @@ private:
int m_blockAirId; int m_blockAirId;
int m_blockIgnoreId; int m_blockIgnoreId;
static const int SectorXMin = -1500/16;
static const int SectorXMax = 1500/16;
static const int SectorZMin = -1500/16;
static const int SectorZMax = 1500/16;
}; /* ----- end of class TileGenerator ----- */ }; /* ----- end of class TileGenerator ----- */
#endif /* end of include guard: TILEGENERATOR_H_JJNUCARH */ #endif /* end of include guard: TILEGENERATOR_H_JJNUCARH */