Minor refactor + comments

This commit is contained in:
MihailRis
2023-11-30 05:00:48 +03:00
parent 1d5037893c
commit c0050cffaa
4 changed files with 19 additions and 10 deletions
+2 -3
View File
@@ -22,8 +22,7 @@ LevelController::~LevelController() {
void LevelController::update(
float delta,
bool input,
bool pause,
bool interactions) {
bool pause) {
if (!pause) {
if (input) {
player->updateKeyboard();
@@ -35,7 +34,7 @@ void LevelController::update(
}
player->refreshCamera();
if (interactions) {
if (input) {
player->updateInteraction();
} else {
player->selectedBlockId = -1;