Skip to content

Commit

Permalink
Make generated water a shade darker to match up with older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Jun 29, 2013
1 parent 3f13dc7 commit 9126823
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mapgen.cpp
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 9126823

Please sign in to comment.