diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-14 11:14:04 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-14 11:14:04 +0200 |
commit | a70b8298b6ada8abead9ef2b292531407225c2d1 (patch) | |
tree | 605095d3d0a6e6a291644af0b7864a126e52ceb8 /src/World.h | |
parent | Merge remote-tracking branch 'origin/master' into portals (diff) | |
download | cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.gz cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.bz2 cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.lz cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.xz cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.zst cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.zip |
Diffstat (limited to '')
-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 ab36e0a9b..0592c78fc 100644 --- a/src/World.h +++ b/src/World.h @@ -180,7 +180,7 @@ public: virtual eDimension GetDimension(void) const { return m_Dimension; } /** Returns the world height at the specified coords; waits for the chunk to get loaded / generated */ - int GetHeight(int a_BlockX, int a_BlockZ); + virtual int GetHeight(int a_BlockX, int a_BlockZ); // tolua_end @@ -749,10 +749,10 @@ public: } /** Returns true if the current weather has any precipitation - rain, storm or snow */ - virtual bool IsWeatherWet(void) const { return !IsWeatherSunny(); } + bool IsWeatherWet(void) const { return !IsWeatherSunny(); } /** Returns true if it is raining, stormy or snowing at the specified location. This takes into account biomes. */ - bool IsWeatherWetAt(int a_BlockX, int a_BlockZ) + virtual bool IsWeatherWetAt(int a_BlockX, int a_BlockZ) { return (IsWeatherWet() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ))); } |