summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorDániel Juhász <juhdanad@gmail.com>2017-01-30 02:47:36 +0100
committerZeno- <kde.psych@gmail.com>2017-01-30 11:47:36 +1000
commitf0e3abc64d1c79c024f588e6d7ccd27e021c4a9a (patch)
treea5a3b5a0a6192b7f4f1e9182db996cf158698d21 /src/game.cpp
parent0c9189d10989f85cd5148107b643dc17a49c06ff (diff)
downloadminetest-f0e3abc64d1c79c024f588e6d7ccd27e021c4a9a.tar.gz
minetest-f0e3abc64d1c79c024f588e6d7ccd27e021c4a9a.tar.bz2
minetest-f0e3abc64d1c79c024f588e6d7ccd27e021c4a9a.zip
Re-add halo highlight (#5130)
Due to a rebase mistake halo highlighting was disabled. This commit re-adds that feature.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 1cb054cab..840403c42 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3697,6 +3697,7 @@ PointedThing Game::updatePointedThing(
{
std::vector<aabb3f> *selectionboxes = hud->getSelectionBoxes();
selectionboxes->clear();
+ hud->setSelectedFaceNormal(v3f(0.0, 0.0, 0.0));
static const bool show_entity_selectionbox = g_settings->getBool(
"show_entity_selectionbox");
@@ -3741,6 +3742,10 @@ PointedThing Game::updatePointedThing(
}
hud->setSelectionPos(intToFloat(result.node_undersurface, BS),
camera_offset);
+ hud->setSelectedFaceNormal(v3f(
+ result.intersection_normal.X,
+ result.intersection_normal.Y,
+ result.intersection_normal.Z));
}
// Update selection mesh light level and vertex colors