diff options
author | nesco <emmanuel@federbusch.fr> | 2014-09-16 20:05:55 +0200 |
---|---|---|
committer | nesco <emmanuel@federbusch.fr> | 2014-09-16 20:05:55 +0200 |
commit | f246faec1636ba9a7e5850dfbbb568d1b7dff0b9 (patch) | |
tree | 0eb17309b106f941677e60c4c2f9427a0192256f /src | |
parent | Pre 1.8 release (diff) | |
download | cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.tar cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.tar.gz cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.tar.bz2 cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.tar.lz cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.tar.xz cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.tar.zst cuberite-f246faec1636ba9a7e5850dfbbb568d1b7dff0b9.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/World.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h index 0c57e6611..6f680694f 100644 --- a/src/World.h +++ b/src/World.h @@ -188,6 +188,9 @@ public: /** Returns true if the world is in Adventure mode */ bool IsGameModeAdventure(void) const { return (m_GameMode == gmAdventure); } + /** Returns true if the world is in Spectator mode */ + bool IsGameModeAdventure(void) const { return (m_GameMode == gmSpectator); } + bool IsPVPEnabled(void) const { return m_bEnabledPVP; } bool IsDeepSnowEnabled(void) const { return m_IsDeepSnowEnabled; } |