diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-03 22:01:12 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-03 22:01:12 +0100 |
commit | d9fb83300cf831ea31a74d509f9be9f2ed4f1189 (patch) | |
tree | 3168d88fa61eaf37d4511b1d45e8fcdc87f70784 /src/BiomeDef.cpp | |
parent | Removed unused lookups (diff) | |
download | cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.tar cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.tar.gz cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.tar.bz2 cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.tar.lz cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.tar.xz cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.tar.zst cuberite-d9fb83300cf831ea31a74d509f9be9f2ed4f1189.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BiomeDef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BiomeDef.cpp b/src/BiomeDef.cpp index 5c1156484..3fba93e8a 100644 --- a/src/BiomeDef.cpp +++ b/src/BiomeDef.cpp @@ -13,11 +13,11 @@ EMCSBiome StringToBiome(const AString & a_BiomeString) int res = atoi(a_BiomeString.c_str()); if ((res != 0) || (a_BiomeString.compare("0") == 0)) { - if(res >= biFirstBiome && res < biNumBiomes) + if ((res >= biFirstBiome) && (res < biNumBiomes)) { return (EMCSBiome)res; } - else if(res >= biFirstVarientBiome && res < biNumVarientBiomes) + else if ((res >= biFirstVariantBiome) && (res < biNumVariantBiomes)) { return (EMCSBiome)res; } |