diff options
author | archshift <admin@archshift.com> | 2014-07-23 00:36:13 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-07-24 20:21:37 +0200 |
commit | 4191be7ddba820af4ed0c505a8d62416c2b7a8b4 (patch) | |
tree | 23d92e889d345d33e302aeb5e699fb92bbadc04b /src/World.h | |
parent | Added a queue for setting chunk data. (diff) | |
download | cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.tar cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.tar.gz cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.tar.bz2 cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.tar.lz cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.tar.xz cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.tar.zst cuberite-4191be7ddba820af4ed0c505a8d62416c2b7a8b4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/World.h b/src/World.h index 6613b495a..9658178ae 100644 --- a/src/World.h +++ b/src/World.h @@ -96,7 +96,7 @@ public: class cTask { public: - virtual ~cTask(){}; + virtual ~cTask() {} virtual void Run(cWorld & a_World) = 0; } ; @@ -645,7 +645,7 @@ public: void GetChunkStats(int & a_NumValid, int & a_NumDirty, int & a_NumInLightingQueue); // Various queues length queries (cannot be const, they lock their CS): - inline int GetGeneratorQueueLength (void) { return m_Generator.GetQueueLength(); } // tolua_export + inline int GetGeneratorQueueLength (void) { return m_Generator.GetQueueLength(); } // tolua_export inline size_t GetLightingQueueLength (void) { return m_Lighting.GetQueueLength(); } // tolua_export inline size_t GetStorageLoadQueueLength(void) { return m_Storage.GetLoadQueueLength(); } // tolua_export inline size_t GetStorageSaveQueueLength(void) { return m_Storage.GetSaveQueueLength(); } // tolua_export @@ -677,13 +677,13 @@ public: void CastThunderbolt(int a_BlockX, int a_BlockY, int a_BlockZ); /** Sets the specified weather; resets weather interval; asks and notifies plugins of the change */ - void SetWeather (eWeather a_NewWeather); + void SetWeather(eWeather a_NewWeather); /** Forces a weather change in the next game tick */ - void ChangeWeather (void); + void ChangeWeather(void); /** Returns the current weather. Instead of comparing values directly to the weather constants, use IsWeatherXXX() functions, if possible */ - eWeather GetWeather (void) const { return m_Weather; }; + eWeather GetWeather(void) const { return m_Weather; } /** Returns true if the current weather is sun */ bool IsWeatherSunny(void) const { return (m_Weather == wSunny); } @@ -698,7 +698,7 @@ public: bool IsWeatherRain(void) const { return (m_Weather == wRain); } /** Returns true if it is raining at the specified location. This takes into account biomes. */ - bool IsWeatherRainAt (int a_BlockX, int a_BlockZ) + bool IsWeatherRainAt(int a_BlockX, int a_BlockZ) { return (IsWeatherRain() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ))); } |