aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 888191f4a..e7840b189 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -944,7 +944,7 @@ void Game::updateDebugState()
draw_control->show_wireframe = false;
// noclip
- draw_control->allow_noclip = m_cache_enable_noclip && client->checkPrivilege("noclip");
+ draw_control->allow_noclip = (m_cache_enable_noclip && client->checkPrivilege("noclip")) || g_settings->getBool("freecam");
}
void Game::updateProfilers(const RunStats &stats, const FpsControl &draw_times,