aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-28 22:22:44 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-28 22:22:44 -0400
commit9126823c7e3f16d5a7bc03a30ebbbff66378f6e9 (patch)
tree8abbafeb1bb47533db15e26f08b26142c37af10e
parent3f13dc790caeda7ca8f5e429f6f94458bda5826c (diff)
downloadminetest-9126823c7e3f16d5a7bc03a30ebbbff66378f6e9.tar.gz
minetest-9126823c7e3f16d5a7bc03a30ebbbff66378f6e9.tar.bz2
minetest-9126823c7e3f16d5a7bc03a30ebbbff66378f6e9.zip
Make generated water a shade darker to match up with older versions
-rw-r--r--src/mapgen.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index d80d2107f..7343d10fd 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -943,12 +943,12 @@ void Mapgen::calcLighting(v3s16 nmin, v3s16 nmax) {
u8 light = n.param1 & 0x0F;
if (light) {
- lightSpread(a, v3s16(x, y, z + 1), light);
- lightSpread(a, v3s16(x, y + 1, z ), light);
- lightSpread(a, v3s16(x + 1, y, z ), light);
- lightSpread(a, v3s16(x, y, z - 1), light);
- lightSpread(a, v3s16(x, y - 1, z ), light);
- lightSpread(a, v3s16(x - 1, y, z ), light);
+ lightSpread(a, v3s16(x, y, z + 1), light - 1);
+ lightSpread(a, v3s16(x, y + 1, z ), light - 1);
+ lightSpread(a, v3s16(x + 1, y, z ), light - 1);
+ lightSpread(a, v3s16(x, y, z - 1), light - 1);
+ lightSpread(a, v3s16(x, y - 1, z ), light - 1);
+ lightSpread(a, v3s16(x - 1, y, z ), light - 1);
}
}
}