diff options
author | kwolekr <kwolekr@minetest.net> | 2013-06-28 22:22:44 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-06-28 22:22:44 -0400 |
commit | 9126823c7e3f16d5a7bc03a30ebbbff66378f6e9 (patch) | |
tree | 8abbafeb1bb47533db15e26f08b26142c37af10e | |
parent | 3f13dc790caeda7ca8f5e429f6f94458bda5826c (diff) | |
download | minetest-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.cpp | 12 |
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); } } } |