This commit is contained in:
MarcEricMartel 2021-12-03 11:53:05 -05:00
parent bae802cb4a
commit ebc8ed1f56

View File

@ -326,7 +326,7 @@ void World::RenderWorld(int& rendercount, int& badhitcount, Player& player, Tran
if (ChunkAt(cursor)) { if (ChunkAt(cursor)) {
int chx, chy; int chx, chy;
ChunkAt(cursor)->GetPosition(chx, chy); ChunkAt(cursor)->GetPosition(chx, chy);
for (int index = 0; index < rendercount; ++index) for (int index = 0; index < rendercount; ++index) // Permet de vérifier seulement contre celles ajoutées dans la frame, et ne pas avoir à refaire l'array à chaque frame.
if (renderManifest[index] == Vector3i(chx, 0, chy)) { if (renderManifest[index] == Vector3i(chx, 0, chy)) {
valide = false; valide = false;
++badhitcount; ++badhitcount;