Correction pour pouvoir tomber partout en dehors du monde

This commit is contained in:
MarcEricMartel
2021-11-19 09:05:28 -05:00
parent 78903ecb06
commit 6b87156ff7
5 changed files with 7 additions and 7 deletions

View File

@@ -249,7 +249,7 @@ void Engine::Render(float elapsedTime) {
all.Use();
if (m_world.GetChunks().Get(chx, chy)->IsDirty())
m_world.GetChunks().Get(chx, chy)->Update(m_blockinfo, &m_world);
//if (chx * CHUNK_SIZE_X >= m_player.GetPosition().x * m_player.GetDirection().x && chy * CHUNK_SIZE_Z >= m_player.GetPosition().z * m_player.GetDirection().z)
m_world.GetChunks().Get(chx, chy)->Render();
all.ApplyTranslation(-chx * CHUNK_SIZE_X, 0, -chy * CHUNK_SIZE_Z);
}