From a9193ae4d97016781c69ff9abab444d2e9e0f1eb Mon Sep 17 00:00:00 2001 From: alexei-zebra Date: Sat, 11 Nov 2023 18:47:41 +0300 Subject: [PATCH] pausa & readme hotfix --- README.md | 1 - src/world/Level.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5262179e..7e756ca2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ - **RMB** - place block - **F** - toggle flight mode - **N** - noclip mode -- **Esc** - exit #### Build with CMake ```sh diff --git a/src/world/Level.cpp b/src/world/Level.cpp index bceb6110..2a11fcf5 100644 --- a/src/world/Level.cpp +++ b/src/world/Level.cpp @@ -39,7 +39,8 @@ Level::~Level(){ } void Level::update(float delta, bool updatePlayer, bool interactions) { - playerController->update_controls(delta, updatePlayer); + if (updatePlayer) + playerController->update_controls(delta, updatePlayer); if (interactions) { playerController->update_interaction(); }