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:
842acbf
)
Plantlike meshoptions: Fix inverted random vertical offset
author
number Zero
<silverunicorn2011@yandex.ru>
Fri, 9 Jun 2017 17:31:16 +0000
(20:31 +0300)
committer
paramat
<mat.gregory@virginmedia.com>
Sun, 11 Jun 2017 01:12:33 +0000
(
02:12
+0100)
src/content_mapblock.cpp
patch
|
blob
|
history
diff --git
a/src/content_mapblock.cpp
b/src/content_mapblock.cpp
index 326433141a7c58184ad536684f50beb1638799c8..d7ee8fb826242bca361a39cd2606f2813dd8980a 100644
(file)
--- a/
src/content_mapblock.cpp
+++ b/
src/content_mapblock.cpp
@@
-836,7
+836,7
@@
void MapblockMeshGenerator::drawPlantlikeQuad(float rotation, float quad_offset,
};
if (random_offset_Y) {
PseudoRandom yrng(face_num++ | p.X << 16 | p.Z << 8 | p.Y << 24);
- offset.Y = BS * ((yrng.next() % 16 / 16.0) * 0.125);
+ offset.Y =
-
BS * ((yrng.next() % 16 / 16.0) * 0.125);
}
int offset_count = offset_top_only ? 2 : 4;
for (int i = 0; i < offset_count; i++)