diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-03 13:51:16 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-03 13:51:16 +0200 |
commit | d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280 (patch) | |
tree | d660ebeea895dc2de9d28fec7ec3facd434fa16b /src | |
parent | e494b5d422609b9ed9f79cc39b401f40b6a3ec9a (diff) | |
download | minetest-d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280.tar.gz minetest-d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280.tar.bz2 minetest-d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280.zip |
Show infotext for unknown nodes
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 8 |
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 |