summaryrefslogtreecommitdiffstats
path: root/source/Defines.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-28 22:55:09 +0200
committermadmaxoft <github@xoft.cz>2013-07-28 22:55:09 +0200
commit3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c (patch)
tree2294350370ff68bfe9c778ef1296506f1a6b0ff0 /source/Defines.h
parentIgnoring all items beginning with "world". (diff)
downloadcuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.gz
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.bz2
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.lz
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.xz
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.zst
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.zip
Diffstat (limited to 'source/Defines.h')
-rw-r--r--source/Defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Defines.h b/source/Defines.h
index f52050a9b..94e618eb0 100644
--- a/source/Defines.h
+++ b/source/Defines.h
@@ -116,6 +116,10 @@ enum eGameMode
gmSurvival = eGameMode_Survival,
gmCreative = eGameMode_Creative,
gmAdventure = eGameMode_Adventure,
+
+ // These two are used to check GameMode for validity when converting from integers.
+ gmMax, // Gets automatically assigned
+ gmMin = 0,
} ;