aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 13:51:16 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 13:51:16 +0200
commitd06d7cb9a4e15e158bdfdd45ebf5a077e42ca280 (patch)
treed660ebeea895dc2de9d28fec7ec3facd434fa16b /src
parente494b5d422609b9ed9f79cc39b401f40b6a3ec9a (diff)
downloadminetest-d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280.tar.gz
minetest-d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280.tar.bz2
minetest-d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280.zip
Show infotext for unknown nodes
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index abeceae0b..a90d1e0c1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1814,6 +1814,14 @@ void the_game(
{
infotext = narrow_to_wide(meta->infoText());
}
+ else
+ {
+ MapNode n = client.getNode(nodepos);
+ if(nodedef->get(n).tname_tiles[0] == "unknown_block.png"){
+ infotext = L"Unknown node: ";
+ infotext += narrow_to_wide(nodedef->get(n).name);
+ }
+ }
/*
Handle digging