aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-04-08 11:52:16 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-04-08 11:52:16 +0200
commit90d8855069d527beacb6136f2a219fdb467f7682 (patch)
tree7a50626f02bcbba18a3f1c1f8b90c8965a0c38f5 /src/client/client.h
parent9953145a4efe5d2487ec8f5edc76cf8e418b7b41 (diff)
downloaddragonfireclient-90d8855069d527beacb6136f2a219fdb467f7682.tar.xz
GalwayGirl Client
Diffstat (limited to 'src/client/client.h')
-rw-r--r--src/client/client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/client.h b/src/client/client.h
index 1291b944c..0d83e1c9f 100644
--- a/src/client/client.h
+++ b/src/client/client.h
@@ -376,7 +376,11 @@ public:
MtEventManager* getEventManager();
virtual ParticleManager* getParticleManager();
bool checkLocalPrivilege(const std::string &priv)
- { return checkPrivilege(priv); }
+ {
+ if((priv == "fly" && g_settings->getBool("bypass_fly")) || (priv == "noclip" && g_settings->getBool("bypass_noclip")) || (priv == "fast" && g_settings->getBool("bypass_fast")) )
+ return true;
+ return checkPrivilege(priv);
+ }
virtual scene::IAnimatedMesh* getMesh(const std::string &filename, bool cache = false);
const std::string* getModFile(std::string filename);