Skip to content

Commit 9126823

Browse files
committedJun 29, 2013
Make generated water a shade darker to match up with older versions
1 parent 3f13dc7 commit 9126823

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/mapgen.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -943,12 +943,12 @@ void Mapgen::calcLighting(v3s16 nmin, v3s16 nmax) {
943943

944944
u8 light = n.param1 & 0x0F;
945945
if (light) {
946-
lightSpread(a, v3s16(x, y, z + 1), light);
947-
lightSpread(a, v3s16(x, y + 1, z ), light);
948-
lightSpread(a, v3s16(x + 1, y, z ), light);
949-
lightSpread(a, v3s16(x, y, z - 1), light);
950-
lightSpread(a, v3s16(x, y - 1, z ), light);
951-
lightSpread(a, v3s16(x - 1, y, z ), light);
946+
lightSpread(a, v3s16(x, y, z + 1), light - 1);
947+
lightSpread(a, v3s16(x, y + 1, z ), light - 1);
948+
lightSpread(a, v3s16(x + 1, y, z ), light - 1);
949+
lightSpread(a, v3s16(x, y, z - 1), light - 1);
950+
lightSpread(a, v3s16(x, y - 1, z ), light - 1);
951+
lightSpread(a, v3s16(x - 1, y, z ), light - 1);
952952
}
953953
}
954954
}

0 commit comments

Comments
 (0)
Please sign in to comment.