diff options
author | Mattes D <github@xoft.cz> | 2014-09-09 14:32:58 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-09 14:32:58 +0200 |
commit | feb408424caaa63bd907126d6c963ccf7d5cdb05 (patch) | |
tree | c0c499e3395e24ea42f9b18895658d698f0204e4 /src/World.h | |
parent | Update Zip2008_PDBs.list (diff) | |
parent | Actually set default (diff) | |
download | cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.tar cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.tar.gz cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.tar.bz2 cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.tar.lz cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.tar.xz cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.tar.zst cuberite-feb408424caaa63bd907126d6c963ccf7d5cdb05.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World.h b/src/World.h index 6316c6811..274bd2dcf 100644 --- a/src/World.h +++ b/src/World.h @@ -157,14 +157,14 @@ public: } virtual Int64 GetWorldAge (void) const override { return m_WorldAge; } - virtual Int64 GetTimeOfDay(void) const override { return m_TimeOfDay; } + virtual int GetTimeOfDay(void) const override { return m_TimeOfDay; } void SetTicksUntilWeatherChange(int a_WeatherInterval) { m_WeatherInterval = a_WeatherInterval; } - virtual void SetTimeOfDay(Int64 a_TimeOfDay) override + virtual void SetTimeOfDay(int a_TimeOfDay) override { m_TimeOfDay = a_TimeOfDay; m_TimeOfDaySecs = (double)a_TimeOfDay / 20.0; @@ -888,7 +888,7 @@ private: double m_WorldAgeSecs; // World age, in seconds. Is only incremented, cannot be set by plugins. double m_TimeOfDaySecs; // Time of day in seconds. Can be adjusted. Is wrapped to zero each day. Int64 m_WorldAge; // World age in ticks, calculated off of m_WorldAgeSecs - Int64 m_TimeOfDay; // Time in ticks, calculated off of m_TimeOfDaySecs + int m_TimeOfDay; // Time in ticks, calculated off of m_TimeOfDaySecs Int64 m_LastTimeUpdate; // The tick in which the last time update has been sent. Int64 m_LastUnload; // The last WorldAge (in ticks) in which unloading was triggerred Int64 m_LastSave; // The last WorldAge (in ticks) in which save-all was triggerred |