summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-20 19:50:47 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-20 19:50:47 +0100
commit9c575681f88064a57fc1151c1f1f96f4a6b2fdd5 (patch)
treeded712c5732afc72427714ca40a04da87d24386a /src/World.cpp
parentIncreased the range an Floater can shoot to. (diff)
parentFixed the rest of constructor reorders. (diff)
downloadcuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.tar
cuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.tar.gz
cuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.tar.bz2
cuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.tar.lz
cuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.tar.xz
cuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.tar.zst
cuberite-9c575681f88064a57fc1151c1f1f96f4a6b2fdd5.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/World.cpp b/src/World.cpp
index f81456334..976af671d 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -229,16 +229,16 @@ cWorld::cWorld(const AString & a_WorldName) :
m_WorldName(a_WorldName),
m_IniFileName(m_WorldName + "/world.ini"),
m_StorageSchema("Default"),
+ m_IsSpawnExplicitlySet(false),
m_WorldAgeSecs(0),
m_TimeOfDaySecs(0),
m_WorldAge(0),
m_TimeOfDay(0),
m_LastTimeUpdate(0),
+ m_SkyDarkness(0),
m_Weather(eWeather_Sunny),
m_WeatherInterval(24000), // Guaranteed 1 day of sunshine at server start :)
- m_TickThread(*this),
- m_SkyDarkness(0),
- m_bSpawnExplicitlySet(false)
+ m_TickThread(*this)
{
LOGD("cWorld::cWorld(\"%s\")", a_WorldName.c_str());
@@ -329,7 +329,7 @@ void cWorld::SetNextBlockTick(int a_BlockX, int a_BlockY, int a_BlockZ)
void cWorld::InitializeSpawn(void)
{
- if (!m_bSpawnExplicitlySet) // Check if spawn position was already explicitly set or not
+ if (!m_IsSpawnExplicitlySet) // Check if spawn position was already explicitly set or not
{
GenerateRandomSpawn(); // Generate random solid-land coordinate and then write it to the world configuration
@@ -487,7 +487,7 @@ void cWorld::Start(void)
// Try to find the "SpawnPosition" key and coord values in the world configuration, set the flag if found
int KeyNum = IniFile.FindKey("SpawnPosition");
- m_bSpawnExplicitlySet =
+ m_IsSpawnExplicitlySet =
(
(KeyNum >= 0) &&
(
@@ -497,7 +497,7 @@ void cWorld::Start(void)
)
);
- if (m_bSpawnExplicitlySet)
+ if (m_IsSpawnExplicitlySet)
{
LOGD("Spawnpoint explicitly set!");
m_SpawnX = IniFile.GetValueF("SpawnPosition", "X", m_SpawnX);