@@ -717,9 +717,9 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode()
717
717
bool V_merge = !(param2 & 64 );
718
718
param2 &= 63 ;
719
719
720
- static const float a = BS / 2 ;
721
- static const float g = a - 0.003 ;
722
- static const float b = . 876 * ( BS / 2 );
720
+ static const float a = BS / 2 . 0f ;
721
+ static const float g = a - 0 .03f ;
722
+ static const float b = 0 . 876f * (BS / 2 . 0f );
723
723
724
724
static const aabb3f frame_edges[FRAMED_EDGE_COUNT] = {
725
725
aabb3f ( b, b, -a, a, a, a), // y+
@@ -751,9 +751,12 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode()
751
751
bool nb[FRAMED_NEIGHBOR_COUNT] = {0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 };
752
752
753
753
// 1 = check
754
- static const bool check_nb_vertical [FRAMED_NEIGHBOR_COUNT] = {0 ,1 ,0 ,0 ,1 ,0 , 0 ,0 ,0 ,0 , 0 ,0 ,0 ,0 , 0 ,0 ,0 ,0 };
755
- static const bool check_nb_horizontal [FRAMED_NEIGHBOR_COUNT] = {1 ,0 ,1 ,1 ,0 ,1 , 0 ,0 ,0 ,0 , 1 ,1 ,1 ,1 , 0 ,0 ,0 ,0 };
756
- static const bool check_nb_all [FRAMED_NEIGHBOR_COUNT] = {1 ,1 ,1 ,1 ,1 ,1 , 1 ,1 ,1 ,1 , 1 ,1 ,1 ,1 , 1 ,1 ,1 ,1 };
754
+ static const bool check_nb_vertical [FRAMED_NEIGHBOR_COUNT] =
755
+ {0 ,1 ,0 ,0 ,1 ,0 , 0 ,0 ,0 ,0 , 0 ,0 ,0 ,0 , 0 ,0 ,0 ,0 };
756
+ static const bool check_nb_horizontal [FRAMED_NEIGHBOR_COUNT] =
757
+ {1 ,0 ,1 ,1 ,0 ,1 , 0 ,0 ,0 ,0 , 1 ,1 ,1 ,1 , 0 ,0 ,0 ,0 };
758
+ static const bool check_nb_all [FRAMED_NEIGHBOR_COUNT] =
759
+ {1 ,1 ,1 ,1 ,1 ,1 , 1 ,1 ,1 ,1 , 1 ,1 ,1 ,1 , 1 ,1 ,1 ,1 };
757
760
const bool *check_nb = check_nb_all;
758
761
759
762
// neighbours checks for frames visibility
@@ -807,7 +810,7 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode()
807
810
f->special_tiles [0 ].layers [0 ].texture ) {
808
811
// Internal liquid level has param2 range 0 .. 63,
809
812
// convert it to -0.5 .. 0.5
810
- float vlev = (param2 / 63.0 ) * 2.0 - 1.0 ;
813
+ float vlev = (param2 / 63 .0f ) * 2 .0f - 1 .0f ;
811
814
getSpecialTile (0 , &tile);
812
815
drawAutoLightedCuboid (aabb3f (-(nb[5 ] ? g : b),
813
816
-(nb[4 ] ? g : b),
0 commit comments