summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornesco <emmanuel@federbusch.fr>2014-09-16 20:05:55 +0200
committernesco <emmanuel@federbusch.fr>2014-09-16 20:05:55 +0200
commitf246faec1636ba9a7e5850dfbbb568d1b7dff0b9 (patch)
tree0eb17309b106f941677e60c4c2f9427a0192256f
parentPre 1.8 release (diff)
downloadcuberite-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
-rw-r--r--src/World.h3
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; }