minor refactor
This commit is contained in:
parent
40ac604e58
commit
344df27f61
@ -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…
x
Reference in New Issue
Block a user