projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e3abc
)
Use fabs() instead of abs() (#5141)
author
Dániel Juhász
<juhdanad@gmail.com>
Mon, 30 Jan 2017 07:18:18 +0000
(08:18 +0100)
committer
Loïc Blot
<nerzhul@users.noreply.github.com>
Mon, 30 Jan 2017 07:18:18 +0000
(08:18 +0100)
src/mapblock_mesh.cpp
patch
|
blob
|
history
diff --git
a/src/mapblock_mesh.cpp
b/src/mapblock_mesh.cpp
index 79d02d6ff035582c5d1eb98e7b4ddb5dcd282d87..2520b5459ad1c1361cafc7c42bc1e94de7967c03 100644
(file)
--- a/
src/mapblock_mesh.cpp
+++ b/
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 (
f
abs(f.vertices[0].Color.getLuminance()
- f.vertices[2].Color.getLuminance())
- > abs(f.vertices[1].Color.getLuminance()
+ >
f
abs(f.vertices[1].Color.getLuminance()
- f.vertices[3].Color.getLuminance()))
indices_p = indices_alternate;