From d06d7cb9a4e15e158bdfdd45ebf5a077e42ca280 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 3 Dec 2011 13:51:16 +0200 Subject: Show infotext for unknown nodes --- src/game.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3