fix: camera shaking while paused

This commit is contained in:
MihailRis 2024-08-04 16:53:05 +03:00
parent df1e3f42c9
commit e45f63c315

View File

@ -260,7 +260,7 @@ void PlayerController::postUpdate(float delta, bool input, bool pause) {
camControl.updateMouse(this->input);
}
player->postUpdate();
camControl.update(this->input, delta, level->chunks.get());
camControl.update(this->input, pause ? 0.0f : delta, level->chunks.get());
if (input) {
updateInteraction();
} else {