!!!
This commit is contained in:
parent
bae802cb4a
commit
ebc8ed1f56
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user