summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-04 09:10:14 +0100
committerMattes D <github@xoft.cz>2014-12-04 09:10:14 +0100
commitc8e75994ccde76c0f506fec7c2cbf948aec36fef (patch)
treef2dfb58f5a8fb3306ca66209c6dfa38bb40b64e5 /src/World.cpp
parentMerge pull request #1646 from p-mcgowan/luaCheckstyleWarnings (diff)
parentUpdated whitespace in comment, changed conditional to logical equivalent due to popular demand (diff)
downloadcuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.tar
cuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.tar.gz
cuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.tar.bz2
cuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.tar.lz
cuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.tar.xz
cuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.tar.zst
cuberite-c8e75994ccde76c0f506fec7c2cbf948aec36fef.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 00c8caf13..9a6ef5c30 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -614,7 +614,7 @@ void cWorld::Start(void)
}
// Adjust the enum-backed variables into their respective bounds:
- m_GameMode = (eGameMode) Clamp(GameMode, (int)gmSurvival, (int)gmAdventure);
+ m_GameMode = (eGameMode) Clamp(GameMode, (int)gmSurvival, (int)gmSpectator);
m_TNTShrapnelLevel = (eShrapnelLevel)Clamp(TNTShrapnelLevel, (int)slNone, (int)slAll);
m_Weather = (eWeather) Clamp(Weather, (int)wSunny, (int)wStorm);