make leaves use CDT_ROOFLIKE

master
darkrose 2015-01-08 04:52:12 +10:00
parent 548eaa2db9
commit aeb561bd6f
2 changed files with 6 additions and 8 deletions

View File

@ -217,7 +217,7 @@ void content_mapnode_plants(bool repeat)
f->param_type = CPT_LIGHT;
//f->is_ground_content = true;
if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE;
f->draw_type = CDT_ROOFLIKE;
f->solidness = 0; // drawn separately, makes no faces
f->visual_solidness = 1;
f->setAllTextures("leaves.png");
@ -250,7 +250,7 @@ void content_mapnode_plants(bool repeat)
f->param_type = CPT_LIGHT;
//f->is_ground_content = true;
if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE;
f->draw_type = CDT_ROOFLIKE;
f->solidness = 0; // drawn separately, makes no faces
f->visual_solidness = 1;
f->setAllTextures("apple_leaves.png");
@ -283,7 +283,7 @@ void content_mapnode_plants(bool repeat)
f->param_type = CPT_LIGHT;
//f->is_ground_content = true;
if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE;
f->draw_type = CDT_ROOFLIKE;
f->solidness = 0; // drawn separately, makes no faces
f->visual_solidness = 1;
f->setAllTextures("jungleleaves.png");
@ -316,7 +316,7 @@ void content_mapnode_plants(bool repeat)
f->param_type = CPT_LIGHT;
//f->is_ground_content = true;
if (new_style_leaves) {
f->draw_type = CDT_GLASSLIKE;
f->draw_type = CDT_ROOFLIKE;
f->solidness = 0; // drawn separately, makes no faces
f->visual_solidness = 1;
f->setAllTextures("conifer_leaves.png");

View File

@ -204,10 +204,8 @@ void make_conifertree(ManualMapVoxelManipulator &vmanip, v3s16 p0)
}
// p1 is now the last piece of the trunk
for (s16 ii=1; ii<=3; ii++) {
if (vmanip.m_area.contains(p1+v3s16(0,ii,0)))
vmanip.m_data[vmanip.m_area.index(p1+v3s16(0,ii,0))] = leavesnode;
}
if (vmanip.m_area.contains(p1+v3s16(0,1,0)))
vmanip.m_data[vmanip.m_area.index(p1+v3s16(0,1,0))] = leavesnode;
for(s16 z=-1; z<=1; z++)
for(s16 y=-2; y<=0; y++)
for(s16 x=-1; x<=1; x++)