From 0fa0e0752a28eeb43195f2288c018d5c0b24520b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 17 Jan 2011 14:57:37 +0200 Subject: old water removed, some fixes here and there --- src/environment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/environment.cpp') diff --git a/src/environment.cpp b/src/environment.cpp index 420681355..17b98acd1 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -18,7 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "environment.h" -#include "main.h" // g_device for timing debug Environment::Environment(Map *map, std::ostream &dout): m_dout(dout) @@ -107,7 +106,8 @@ void Environment::step(float dtime) v3f playerpos = player->getPosition(); // Apply physics to local player - if(player->isLocal() && HAXMODE == false) + bool haxmode = g_settings.getBool("haxmode"); + if(player->isLocal() && haxmode == false) { // Apply gravity to local player v3f speed = player->getSpeed(); -- cgit v1.2.3