cleanup: flatten dead branches in world io level network and stats

This commit is contained in:
MatthewBeshay
2026-03-26 20:53:52 +11:00
parent 12ff12a263
commit 8d3c504ee6
93 changed files with 274 additions and 3246 deletions

View File

@@ -72,19 +72,6 @@ int Region::getTile(int x, int y, int z) {
int xc = (x >> 4);
int zc = (z >> 4);
#if 0
// AP - added a caching system for Chunk::rebuild to take advantage of
if (CachedTiles && xc == xcCached && zc == zcCached) {
unsigned char* Tiles = CachedTiles;
Tiles += y;
if (y >= Level::COMPRESSED_CHUNK_SECTION_HEIGHT) {
Tiles += Level::COMPRESSED_CHUNK_SECTION_TILES -
Level::COMPRESSED_CHUNK_SECTION_HEIGHT;
}
return Tiles[((x & 15) << 11) | ((z & 15) << 7)];
}
#endif
xc -= xc1;
zc -= zc1;