From 691b18c41b74a1dfcbe360f492b4bb2ff9e22610 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Mon, 1 Dec 2014 22:05:36 +1000 Subject: Fix node 0,0,0 being highlighted when enable_node_highlighting == false Without this patch node 0,0,0 is highlighted when enable_node_highligting is false There is a minor lighting issue remaining, however it seems to be related to a different bug (https://github.com/minetest/minetest/issues/1887) --- src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index b6f96acc3..aa12e6c3f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2697,7 +2697,8 @@ void Game::toggleHud(float *statustext_time, bool *flag) *flag = !*flag; *statustext_time = 0; statustext = msg[*flag]; - client->setHighlighted(client->getHighlighted(), *flag); + if (g_settings->getBool("enable_node_highlighting")) + client->setHighlighted(client->getHighlighted(), *flag); } -- cgit v1.2.3