mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-08 10:38:46 +00:00
Cleanups
This commit is contained in:
@@ -85,6 +85,7 @@ int Region::getTile(int x, int y, int z)
|
||||
int xc = (x >> 4);
|
||||
int zc = (z >> 4);
|
||||
|
||||
/*
|
||||
#ifdef __PSVITA__
|
||||
// AP - added a caching system for Chunk::rebuild to take advantage of
|
||||
if( CachedTiles && xc == xcCached && zc == zcCached )
|
||||
@@ -99,6 +100,7 @@ int Region::getTile(int x, int y, int z)
|
||||
return Tiles[ ( (x & 15) << 11 ) | ( (z & 15) << 7 ) ];
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
|
||||
xc -= xc1;
|
||||
zc -= zc1;
|
||||
@@ -114,6 +116,7 @@ int Region::getTile(int x, int y, int z)
|
||||
return lc->getTile(x & 15, y, z & 15);
|
||||
}
|
||||
|
||||
/*
|
||||
// AP - added a caching system for Chunk::rebuild to take advantage of
|
||||
void Region::setCachedTiles(unsigned char *tiles, int xc, int zc)
|
||||
{
|
||||
@@ -126,6 +129,7 @@ void Region::setCachedTiles(unsigned char *tiles, int xc, int zc)
|
||||
}
|
||||
std::copy(tiles, tiles + size, CachedTiles.get());
|
||||
}
|
||||
*/
|
||||
|
||||
LevelChunk* Region::getLevelChunk(int x, int y, int z)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user