mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 04:28:48 +00:00
chore: clean up LevelRenderer diffs
This commit is contained in:
parent
d2e77c63ad
commit
73a74f4872
|
|
@ -2255,6 +2255,7 @@ bool LevelRenderer::updateDirtyChunks() {
|
||||||
// int64_t startTime = System::currentTimeMillis();
|
// int64_t startTime = System::currentTimeMillis();
|
||||||
|
|
||||||
// app.DebugPrintf("Rebuilding permaChunk %d\n", index);
|
// app.DebugPrintf("Rebuilding permaChunk %d\n", index);
|
||||||
|
|
||||||
permaChunk[index].rebuild();
|
permaChunk[index].rebuild();
|
||||||
|
|
||||||
if (index != 0)
|
if (index != 0)
|
||||||
|
|
@ -2493,7 +2494,7 @@ void LevelRenderer::renderHitOutline(std::shared_ptr<Player> player,
|
||||||
|
|
||||||
AABB bb = Tile::tiles[tileId]
|
AABB bb = Tile::tiles[tileId]
|
||||||
->getTileAABB(level[iPad], h->x, h->y, h->z)
|
->getTileAABB(level[iPad], h->x, h->y, h->z)
|
||||||
.grow(0.002f, 0.002f, 0.002f)
|
.grow(ss, ss, ss)
|
||||||
.move(-xo, -yo, -zo);
|
.move(-xo, -yo, -zo);
|
||||||
|
|
||||||
render(&bb);
|
render(&bb);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue