diff --git a/README.md b/README.md index 5262179ea..7e756ca23 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 bceb61109..2a11fcf54 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(); }