Skip to content
Permalink
Browse files

Use fabs() instead of abs() (#5141)

  • Loading branch information...
juhdanad authored and nerzhul committed Jan 30, 2017
1 parent f0e3abc commit 6642c8583a8635a5d61f11ca53254b4ae03d9c70
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mapblock_mesh.cpp
@@ -1090,9 +1090,9 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
brightness of vertices 1 and 3 differ less than
the brightness of vertices 0 and 2.
*/
if (abs(f.vertices[0].Color.getLuminance()
if (fabs(f.vertices[0].Color.getLuminance()
- f.vertices[2].Color.getLuminance())
> abs(f.vertices[1].Color.getLuminance()
> fabs(f.vertices[1].Color.getLuminance()
- f.vertices[3].Color.getLuminance()))
indices_p = indices_alternate;

0 comments on commit 6642c85

Please sign in to comment.
You can’t perform that action at this time.