summaryrefslogtreecommitdiff
path: root/src/mapgen.cpp
diff options
context:
space:
mode:
authorproller <proller@github.com>2014-04-18 21:08:03 +0400
committerproller <proller@github.com>2014-04-18 21:56:48 +0400
commit0279f32db742f06d24a9d01c46f7d70c5e570eb2 (patch)
tree217f49380e9e363a5086468c14168c8efd9b3f26 /src/mapgen.cpp
parent674be38fc262aab78ed75141c70e5c02830ca80d (diff)
downloadminetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.gz
minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.bz2
minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.zip
Remove liquid_finite and weather
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r--src/mapgen.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index a7e9d2e04..5e393901a 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -979,8 +979,6 @@ void Mapgen::updateHeightmap(v3s16 nmin, v3s16 nmax) {
void Mapgen::updateLiquid(UniqueQueue<v3s16> *trans_liquid, v3s16 nmin, v3s16 nmax) {
bool isliquid, wasliquid, rare;
v3s16 em = vm->m_area.getExtent();
- rare = g_settings->getBool("liquid_finite");
- int rarecnt = 0;
for (s16 z = nmin.Z; z <= nmax.Z; z++) {
for (s16 x = nmin.X; x <= nmax.X; x++) {
@@ -990,8 +988,8 @@ void Mapgen::updateLiquid(UniqueQueue<v3s16> *trans_liquid, v3s16 nmin, v3s16 nm
for (s16 y = nmax.Y; y >= nmin.Y; y--) {
isliquid = ndef->get(vm->m_data[i]).isLiquid();
- // there was a change between liquid and nonliquid, add to queue. no need to add every with liquid_finite
- if (isliquid != wasliquid && (!rare || !(rarecnt++ % 36)))
+ // there was a change between liquid and nonliquid, add to queue.
+ if (isliquid != wasliquid)
trans_liquid->push_back(v3s16(x, y, z));
wasliquid = isliquid;