Make generated water a shade darker to match up with older versions
authorkwolekr <kwolekr@minetest.net>
Sat, 29 Jun 2013 02:22:44 +0000 (22:22 -0400)
committerkwolekr <kwolekr@minetest.net>
Sat, 29 Jun 2013 02:22:44 +0000 (22:22 -0400)
src/mapgen.cpp

index d80d2107fa3bbdf03ca6b49f662136c4767de7d7..7343d10fdfab65e9d92d2ebefaa8691c20d452a7 100644 (file)
@@ -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);
                                }
                        }
                }