summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-11 14:40:34 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-11 14:40:34 +0200
commit1a9467574e462f467dc9e1a9cc45b68c87276968 (patch)
tree5fdb369bd29fa7e8e7f00e1c2c9e62eabe12e296
parentIsWeatherSunnyAt does something useful :D (diff)
downloadcuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.tar
cuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.tar.gz
cuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.tar.bz2
cuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.tar.lz
cuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.tar.xz
cuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.tar.zst
cuberite-1a9467574e462f467dc9e1a9cc45b68c87276968.zip
-rw-r--r--src/World.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/World.h b/src/World.h
index f9471e881..7469c1054 100644
--- a/src/World.h
+++ b/src/World.h
@@ -722,7 +722,7 @@ public:
/** Returns true if it is raining at the specified location. This takes into account biomes. */
bool IsWeatherRainAt (int a_BlockX, int a_BlockZ) const
{
- return (m_Weather == wRain) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
+ return (IsWeatherRain() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
}
/** Returns true if the current weather is stormy */
@@ -731,16 +731,16 @@ public:
/** Returns true if the weather is stormy at the specified location. This takes into account biomes. */
bool IsWeatherStormAt(int a_BlockX, int a_BlockZ) const
{
- return (m_Weather == wStorm) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
+ return (IsWeatherStorm() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
}
/** Returns true if the current weather has any precipitation - rain, storm or snow */
- bool IsWeatherWet(void) const { return (m_Weather != wSunny); }
+ 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) const
{
- return (m_Weather != wSunny) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
+ return (IsWeatherWet() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)));
}
// tolua_end