mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
minor refactor
This commit is contained in:
parent
40ac604e58
commit
344df27f61
1 changed files with 1 additions and 2 deletions
|
|
@ -99,9 +99,8 @@ void Decorator::update(
|
||||||
|
|
||||||
void Decorator::update(float delta, const Camera& camera) {
|
void Decorator::update(float delta, const Camera& camera) {
|
||||||
glm::ivec3 pos = camera.position;
|
glm::ivec3 pos = camera.position;
|
||||||
pos -= glm::ivec3(UPDATE_AREA_DIAMETER / 2);
|
|
||||||
for (int i = 0; i < ITERATIONS; i++) {
|
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& chunks = *level.chunks;
|
||||||
const auto& indices = *level.content->getIndices();
|
const auto& indices = *level.content->getIndices();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue