mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Minor refactor + comments
This commit is contained in:
parent
1d5037893c
commit
c0050cffaa
4 changed files with 19 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue