diff options
author | madmaxoft <github@xoft.cz> | 2013-11-30 15:57:56 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-30 15:57:56 +0100 |
commit | 8eae5f2f3a3992e800e1c5607f91db2166198763 (patch) | |
tree | 890f69a830742f4eba087cf825b50f24f200a787 /src/Defines.h | |
parent | Explicitly set spawnpoint fixes. (diff) | |
download | cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.tar cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.tar.gz cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.tar.bz2 cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.tar.lz cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.tar.xz cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.tar.zst cuberite-8eae5f2f3a3992e800e1c5607f91db2166198763.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Defines.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h index 06410cab4..a338548de 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -546,6 +546,32 @@ namespace ItemCategory ); } } + + + + + +/// Returns true if the biome has no downfall - deserts and savannas +inline bool IsBiomeNoDownfall(EMCSBiome a_Biome) +{ + switch (a_Biome) + { + case biDesert: + case biDesertHills: + case biDesertM: + case biSavanna: + case biSavannaM: + case biSavannaPlateau: + case biSavannaPlateauM: + case biNether: + case biEnd: + { + return true; + } + } + return false; +} + // tolua_end |