aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index dc44b3a36..b1722ee3f 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -107,8 +107,8 @@ void Environment::step(float dtime)
v3f playerpos = player->getPosition();
// Apply physics to local player
- bool haxmode = g_settings.getBool("haxmode");
- if(player->isLocal() && haxmode == false)
+ bool free_move = g_settings.getBool("free_move");
+ if(player->isLocal() && free_move == false)
{
// Apply gravity to local player
v3f speed = player->getSpeed();