Controllers minor refactor
This commit is contained in:
@@ -126,7 +126,7 @@ void PlayerController::update(float delta, bool input, bool pause) {
|
||||
updateControls(delta);
|
||||
|
||||
}
|
||||
refreshCamera();
|
||||
camControl.refresh();
|
||||
if (input) {
|
||||
updateInteraction();
|
||||
} else {
|
||||
@@ -179,10 +179,6 @@ void PlayerController::updateControls(float delta){
|
||||
player->update(level, input, delta);
|
||||
}
|
||||
|
||||
void PlayerController::refreshCamera() {
|
||||
camControl.refresh();
|
||||
}
|
||||
|
||||
void PlayerController::updateInteraction(){
|
||||
const ContentIndices* contentIds = level->contentIds;
|
||||
Chunks* chunks = level->chunks;
|
||||
|
||||
Reference in New Issue
Block a user