aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortheviper121 <theviper121@gmail.com>2019-08-19 12:18:11 -0500
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-08-19 19:18:11 +0200
commitded5da780002c17f2079a1d8ea09eb923a3b5e8f (patch)
tree54b9fdd3640a49112ce2392b42faa9e6eda9c957 /src
parentdea5a152b2c80276a0f09197e06e411a2ec53374 (diff)
downloadminetest-ded5da780002c17f2079a1d8ea09eb923a3b5e8f.tar.gz
minetest-ded5da780002c17f2079a1d8ea09eb923a3b5e8f.tar.bz2
minetest-ded5da780002c17f2079a1d8ea09eb923a3b5e8f.zip
Restore intended functionality to minimap markers (#8819)
Diffstat (limited to 'src')
-rw-r--r--src/client/minimap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/minimap.cpp b/src/client/minimap.cpp
index 4d83c088a..68770ec19 100644
--- a/src/client/minimap.cpp
+++ b/src/client/minimap.cpp
@@ -569,7 +569,7 @@ void Minimap::updateActiveMarkers()
m_active_markers.clear();
for (Nametag *nametag : nametags) {
- v3s16 pos = floatToInt(nametag->parent_node->getPosition() +
+ v3s16 pos = floatToInt(nametag->parent_node->getAbsolutePosition() +
intToFloat(client->getCamera()->getOffset(), BS), BS);
pos -= data->pos - v3s16(data->map_size / 2,
data->scan_height / 2,