Skip to content

Commit 0e58168

Browse files
CasimirKaPazinerzhul
authored andcommittedJun 4, 2017
Mapgen v6: Use snow blocks in tundra and remove them from taiga (#5827)
* Mapgen v6: Use snow blocks in tundra and remove them from taiga * Use snowblocks in tundra above dirt with snow
1 parent 7786521 commit 0e58168

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

Diff for: ‎src/mapgen_v6.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1002,14 +1002,13 @@ void MapgenV6::placeTreesAndJungleGrass()
10021002
continue;
10031003

10041004
v3s16 p(x, y, z);
1005-
// Trees grow only on mud and grass and snowblock
1005+
// Trees grow only on mud and grass
10061006
{
10071007
u32 i = vm->m_area.index(p);
10081008
content_t c = vm->m_data[i].getContent();
10091009
if (c != c_dirt &&
10101010
c != c_dirt_with_grass &&
1011-
c != c_dirt_with_snow &&
1012-
c != c_snowblock)
1011+
c != c_dirt_with_snow)
10131012
continue;
10141013
}
10151014
p.Y++;
@@ -1064,15 +1063,15 @@ void MapgenV6::growGrass() // Add surface nodes
10641063
content_t c = vm->m_data[i].getContent();
10651064
if (surface_y >= water_level - 20) {
10661065
if (bt == BT_TAIGA && c == c_dirt) {
1067-
vm->m_data[i] = n_snowblock;
1068-
vm->m_area.add_y(em, i, -1);
10691066
vm->m_data[i] = n_dirt_with_snow;
10701067
} else if (bt == BT_TUNDRA) {
10711068
if (c == c_dirt) {
1069+
vm->m_data[i] = n_snowblock;
1070+
vm->m_area.add_y(em, i, -1);
10721071
vm->m_data[i] = n_dirt_with_snow;
10731072
} else if (c == c_stone && surface_y < node_max.Y) {
10741073
vm->m_area.add_y(em, i, 1);
1075-
vm->m_data[i] = n_snow;
1074+
vm->m_data[i] = n_snowblock;
10761075
}
10771076
} else if (c == c_dirt) {
10781077
vm->m_data[i] = n_dirt_with_grass;

0 commit comments

Comments
 (0)
Please sign in to comment.