mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: selection update latency
This commit is contained in:
parent
2e7c0a109d
commit
e014931e1e
2 changed files with 2 additions and 3 deletions
|
|
@ -257,13 +257,13 @@ void PlayerController::postUpdate(float delta, bool input, bool pause) {
|
|||
if (!pause && input) {
|
||||
camControl.updateMouse(this->input);
|
||||
}
|
||||
player->postUpdate();
|
||||
camControl.update(this->input, delta, level->chunks.get());
|
||||
if (input) {
|
||||
updateInteraction();
|
||||
} else {
|
||||
player->selection = {};
|
||||
}
|
||||
player->postUpdate();
|
||||
camControl.update(this->input, delta, level->chunks.get());
|
||||
}
|
||||
|
||||
void PlayerController::updateKeyboard() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue