Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 24, 2024
1 parent 40ac604 commit 344df27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/graphics/render/Decorator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 344df27

Please sign in to comment.