diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-05 18:58:29 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-05 18:58:29 +0200 |
commit | 156c9851b8a099656fa86ea52d989e35e5b7ebf1 (patch) | |
tree | f2d8b111aee03dba8f37a8c9bd04952ff1b7926c /src/World.cpp | |
parent | Fixed decision failure (diff) | |
download | cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.tar cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.tar.gz cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.tar.bz2 cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.tar.lz cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.tar.xz cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.tar.zst cuberite-156c9851b8a099656fa86ea52d989e35e5b7ebf1.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/World.cpp b/src/World.cpp index 739ae39d4..3e02caf8e 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -11,7 +11,6 @@ #include "ChunkMap.h" #include "Generating/ChunkDesc.h" #include "OSSupport/Timer.h" -#include <sstream> // Serializers #include "WorldStorage/ScoreboardSerializer.h" @@ -571,10 +570,7 @@ void cWorld::Start(void) m_VillagersShouldHarvestCrops = IniFile.GetValueSetB("Monsters", "VillagersShouldHarvestCrops", true); int GameMode = IniFile.GetValueSetI("General", "Gamemode", (int)m_GameMode); int Weather = IniFile.GetValueSetI("General", "Weather", (int)m_Weather); - - std::stringstream ss; - ss << m_TimeOfDay; - Int64 TimeOfDay = _atoi64(IniFile.GetValueSet("General", "TimeInTicks", ss.str()).c_str()); + Int64 TimeOfDay = IniFile.GetValueSetI("General", "TimeInTicks", m_TimeOfDay); if ((GetDimension() != dimNether) && (GetDimension() != dimEnd)) { @@ -767,10 +763,7 @@ void cWorld::Stop(void) IniFile.SetValueB("Mechanics", "CommandBlocksEnabled", m_bCommandBlocksEnabled); IniFile.SetValueB("Mechanics", "UseChatPrefixes", m_bUseChatPrefixes); IniFile.SetValueI("General", "Weather", (int)m_Weather); - - std::stringstream ss; - ss << m_TimeOfDay; - IniFile.SetValue("General", "TimeInTicks", ss.str()); + IniFile.SetValueI("General", "TimeInTicks", m_TimeOfDay); IniFile.WriteFile(m_IniFileName); m_TickThread.Stop(); |