From: Perttu Ahola Date: Sat, 3 Dec 2011 11:51:16 +0000 (+0200) Subject: Show infotext for unknown nodes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280;p=zefram%2Fminetest%2Fminetest_engine.git Show infotext for unknown nodes --- diff --git a/src/game.cpp b/src/game.cpp index abeceae0..a90d1e0c 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