diff options
author | SmallJoker <mk939@ymail.com> | 2016-10-06 10:12:14 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-10-06 12:13:37 +0200 |
commit | 997fc59c7e29a4d2b3f19df9972f3a7d4ac894e3 (patch) | |
tree | 118ecd2f1d0382892cb781df6a4ea42b7aa5c62f | |
parent | 009a9f1c6e8115abbcdf2ccbcf10c240417b07da (diff) | |
download | minetest-997fc59c7e29a4d2b3f19df9972f3a7d4ac894e3.tar.gz minetest-997fc59c7e29a4d2b3f19df9972f3a7d4ac894e3.tar.bz2 minetest-997fc59c7e29a4d2b3f19df9972f3a7d4ac894e3.zip |
Use relative position for nametags
-rw-r--r-- | src/camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index 4feab1fe5..b86f218fe 100644 --- 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->getAbsolutePosition() + 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) { |