From 344df27f611a3090dd1b555fd55c12089522212c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 24 Dec 2024 05:14:51 +0300 Subject: [PATCH] minor refactor --- src/graphics/render/Decorator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graphics/render/Decorator.cpp b/src/graphics/render/Decorator.cpp index b7bd42188..95ccbcc23 100644 --- a/src/graphics/render/Decorator.cpp +++ b/src/graphics/render/Decorator.cpp @@ -99,9 +99,8 @@ void Decorator::update( void Decorator::update(float delta, const Camera& camera) { glm::ivec3 pos = camera.position; - pos -= glm::ivec3(UPDATE_AREA_DIAMETER / 2); for (int i = 0; i < ITERATIONS; i++) { - update(delta, pos, camera.position); + update(delta, pos - glm::ivec3(UPDATE_AREA_DIAMETER / 2), pos); } const auto& chunks = *level.chunks; const auto& indices = *level.content->getIndices();