Skip to content

Commit 997fc59

Browse files
SmallJokersfan5
authored andcommittedOct 6, 2016
Use relative position for nametags
1 parent 009a9f1 commit 997fc59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/camera.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ void Camera::drawNametags()
552552
// shadow can remain.
553553
continue;
554554
}
555-
v3f pos = nametag->parent_node->getPosition() + v3f(0.0, 1.1 * BS, 0.0);
555+
v3f pos = nametag->parent_node->getAbsolutePosition() + v3f(0.0, 1.1 * BS, 0.0);
556556
f32 transformed_pos[4] = { pos.X, pos.Y, pos.Z, 1.0f };
557557
trans.multiplyWith1x4Matrix(transformed_pos);
558558
if (transformed_pos[3] > 0) {

0 commit comments

Comments
 (0)
Please sign in to comment.