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:
009a9f1
)
Use relative position for nametags
author
SmallJoker
<mk939@ymail.com>
Thu, 6 Oct 2016 08:12:14 +0000
(10:12 +0200)
committer
sfan5
<sfan5@live.de>
Thu, 6 Oct 2016 10:13:37 +0000
(12:13 +0200)
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index 4feab1fe56db5126f6162d4c59d0bd432dbafb15..b86f218fe95cae275658874f0fc6b59396e928a5 100644
(file)
--- a/
src/camera.cpp
+++ b/
src/camera.cpp
@@
-552,7
+552,7
@@
void Camera::drawNametags()
// shadow can remain.
continue;
}
- v3f pos = nametag->parent_node->getPosition() + v3f(0.0, 1.1 * BS, 0.0);
+ v3f pos = nametag->parent_node->get
Absolute
Position() + v3f(0.0, 1.1 * BS, 0.0);
f32 transformed_pos[4] = { pos.X, pos.Y, pos.Z, 1.0f };
trans.multiplyWith1x4Matrix(transformed_pos);
if (transformed_pos[3] > 0) {