mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
Use fabs() instead of abs() (#5141)
This commit is contained in:
parent
f0e3abc64d
commit
6642c8583a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user