diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-12 13:28:06 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-12 13:28:06 +0200 |
commit | bee615b75b3cd98335beaa8f5a6c4487ccccb0fd (patch) | |
tree | 26180f7088ee6ad69832f7af46182606a8c66489 /src/World.h | |
parent | Fixed many right click issues. (diff) | |
parent | Fixed a redstone sim failure with droppers. (diff) | |
download | cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.gz cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.bz2 cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.lz cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.xz cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.tar.zst cuberite-bee615b75b3cd98335beaa8f5a6c4487ccccb0fd.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 2c363c0af..beacf6267 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 |