diff options
author | Morgan Redshaw <killakan002@hotmail.com> | 2013-12-31 05:30:20 +0100 |
---|---|---|
committer | Morgan Redshaw <killakan002@hotmail.com> | 2013-12-31 05:30:20 +0100 |
commit | 782818ffb520553e772bc5a4638009664a821f90 (patch) | |
tree | 9653a463a9307901bdc82472fb08573cc9290367 /src/Entities/Player.cpp | |
parent | Fixed compilation in VC2008. (diff) | |
download | cuberite-782818ffb520553e772bc5a4638009664a821f90.tar cuberite-782818ffb520553e772bc5a4638009664a821f90.tar.gz cuberite-782818ffb520553e772bc5a4638009664a821f90.tar.bz2 cuberite-782818ffb520553e772bc5a4638009664a821f90.tar.lz cuberite-782818ffb520553e772bc5a4638009664a821f90.tar.xz cuberite-782818ffb520553e772bc5a4638009664a821f90.tar.zst cuberite-782818ffb520553e772bc5a4638009664a821f90.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 67d5a47ef..bc92790aa 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -908,8 +908,8 @@ bool cPlayer::IsGameModeSurvival(void) const bool cPlayer::IsGameModeAdventure(void) const { - return (m_GameMode == gmCreative) || // Either the player is explicitly in Adventure - ((m_GameMode == gmNotSet) && m_World->IsGameModeCreative()); // or they inherit from the world and the world is Adventure + return (m_GameMode == gmAdventure) || // Either the player is explicitly in Adventure + ((m_GameMode == gmNotSet) && m_World->IsGameModeAdventure()); // or they inherit from the world and the world is Adventure } |