@@ -389,11 +389,11 @@ void MapblockMeshGenerator::prepareLiquidNodeDrawing()
389
389
c_flowing = nodedef->getId (f->liquid_alternative_flowing );
390
390
c_source = nodedef->getId (f->liquid_alternative_source );
391
391
top_is_same_liquid = (ntop.getContent () == c_flowing) || (ntop.getContent () == c_source);
392
- draw_bottom = (nbottom.getContent () != c_flowing) && (nbottom.getContent () != c_source);
393
- if (draw_bottom && (nbottom. getContent () != CONTENT_AIR) ) {
392
+ draw_liquid_bottom = (nbottom.getContent () != c_flowing) && (nbottom.getContent () != c_source);
393
+ if (draw_liquid_bottom ) {
394
394
const ContentFeatures &f2 = nodedef->get (nbottom.getContent ());
395
395
if (f2.solidness > 1 )
396
- draw_bottom = false ;
396
+ draw_liquid_bottom = false ;
397
397
}
398
398
399
399
if (data->m_smooth_lighting )
@@ -605,9 +605,9 @@ void MapblockMeshGenerator::drawLiquidTop()
605
605
void MapblockMeshGenerator::drawLiquidBottom ()
606
606
{
607
607
video::S3DVertex vertices[4 ] = {
608
- video::S3DVertex (-BS / 2 , -BS / 2 , -BS / 2 , 0 , 0 , 0 , color_liquid_top, 0 , 0 ),
609
- video::S3DVertex ( BS / 2 , -BS / 2 , -BS / 2 , 0 , 0 , 0 , color_liquid_top, 1 , 0 ),
610
- video::S3DVertex ( BS / 2 , -BS / 2 , BS / 2 , 0 , 0 , 0 , color_liquid_top, 1 , 1 ),
608
+ video::S3DVertex (-BS / 2 , -BS / 2 , -BS / 2 , 0 , 0 , 0 , color_liquid_top, 0 , 0 ),
609
+ video::S3DVertex ( BS / 2 , -BS / 2 , -BS / 2 , 0 , 0 , 0 , color_liquid_top, 1 , 0 ),
610
+ video::S3DVertex ( BS / 2 , -BS / 2 , BS / 2 , 0 , 0 , 0 , color_liquid_top, 1 , 1 ),
611
611
video::S3DVertex (-BS / 2 , -BS / 2 , BS / 2 , 0 , 0 , 0 , color_liquid_top, 0 , 1 ),
612
612
};
613
613
@@ -628,7 +628,7 @@ void MapblockMeshGenerator::drawLiquidNode()
628
628
drawLiquidSides ();
629
629
if (!top_is_same_liquid)
630
630
drawLiquidTop ();
631
- if (draw_bottom )
631
+ if (draw_liquid_bottom )
632
632
drawLiquidBottom ();
633
633
}
634
634
0 commit comments