summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-11 11:56:29 +0100
committermadmaxoft <github@xoft.cz>2014-02-11 11:56:29 +0100
commit892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6 (patch)
tree6db55e67a9f1afb80c167bf601610d59c34954e6 /src
parentMade cChunkStay's destructor virtual. (diff)
downloadcuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.tar
cuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.tar.gz
cuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.tar.bz2
cuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.tar.lz
cuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.tar.xz
cuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.tar.zst
cuberite-892c7eb57f4edce3a95e1248d9ef1dc8eac5b3b6.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp6
-rw-r--r--src/World.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/World.cpp b/src/World.cpp
index c2149e4c0..f8c1091f0 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -248,11 +248,11 @@ cWorld::cWorld(const AString & a_WorldName) :
m_SkyDarkness(0),
m_Weather(eWeather_Sunny),
m_WeatherInterval(24000), // Guaranteed 1 day of sunshine at server start :)
+ m_bCommandBlocksEnabled(false),
+ m_bUseChatPrefixes(true),
m_Scoreboard(this),
m_GeneratorCallbacks(*this),
- m_TickThread(*this),
- m_bCommandBlocksEnabled(false),
- m_bUseChatPrefixes(true)
+ m_TickThread(*this)
{
LOGD("cWorld::cWorld(\"%s\")", a_WorldName.c_str());
diff --git a/src/World.h b/src/World.h
index 26f3993e0..fa83fe73e 100644
--- a/src/World.h
+++ b/src/World.h
@@ -803,6 +803,7 @@ private:
/** Whether command blocks are enabled or not */
bool m_bCommandBlocksEnabled;
+
/** Whether prefixes such as [INFO] are prepended to SendMessageXXX() / BroadcastChatXXX() functions */
bool m_bUseChatPrefixes;
@@ -846,7 +847,7 @@ private:
cWorld(const AString & a_WorldName);
- ~cWorld();
+ virtual ~cWorld();
void Tick(float a_Dt, int a_LastTickDurationMSec);