summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/World.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index abdc3120c..b0fed84ba 100644
--- a/src/World.h
+++ b/src/World.h
@@ -708,12 +708,23 @@ public:
eWeather GetWeather (void) const { return m_Weather; };
bool IsWeatherSunny(void) const { return (m_Weather == wSunny); }
+ bool IsWeatherSunny(int a_BlockX, int a_BlockZ) const {
+ return (m_Weather == wSunny)
+ }
bool IsWeatherRain (void) const { return (m_Weather == wRain); }
+ bool IsWeatherRain (int a_BlockX, int a_BlockZ) const {
+ return (m_Weather == wRain) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)))
+ }
bool IsWeatherStorm(void) const { return (m_Weather == wStorm); }
+ bool IsWeatherStorm(int a_BlockX, int a_BlockZ) const {
+ return (m_Weather == wStorm) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)))
+ }
/** Returns true if the current weather has any precipitation - rain or storm */
bool IsWeatherWet (void) const { return (m_Weather != wSunny); }
-
+ bool IsWeatherWet (int a_BlockX, int a_BlockZ) const {
+ return (m_Weather != wSunny) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)))
+ }
// tolua_end
cChunkGenerator & GetGenerator(void) { return m_Generator; }