From 9126823c7e3f16d5a7bc03a30ebbbff66378f6e9 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Fri, 28 Jun 2013 22:22:44 -0400 Subject: [PATCH] Make generated water a shade darker to match up with older versions --- src/mapgen.cpp | 12 ++++++------ 1 file 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); } } }