Show infotext for unknown nodes

This commit is contained in:
Perttu Ahola 2011-12-03 13:51:16 +02:00
parent e494b5d422
commit d06d7cb9a4

@ -1814,6 +1814,14 @@ void the_game(
{ {
infotext = narrow_to_wide(meta->infoText()); 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 Handle digging