diff options
author | Kahrl <kahrl@gmx.net> | 2012-03-19 01:08:04 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:00 +0300 |
commit | 704782c95b8a4194a9383da55d93f37fd0f7278f (patch) | |
tree | 6f69d40659b463b54670b487ee4a0d0c2c63891b /src/game.cpp | |
parent | 67059e193229137e88f5e10e08c9c7e18c408281 (diff) | |
download | minetest-704782c95b8a4194a9383da55d93f37fd0f7278f.tar.gz minetest-704782c95b8a4194a9383da55d93f37fd0f7278f.tar.bz2 minetest-704782c95b8a4194a9383da55d93f37fd0f7278f.zip |
WIP node metadata, node timers
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7d049edf0..8440801b7 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2195,7 +2195,7 @@ void the_game( ClientMap &map = client.getEnv().getClientMap(); NodeMetadata *meta = map.getNodeMetadata(nodepos); if(meta){ - infotext = narrow_to_wide(meta->infoText()); + infotext = narrow_to_wide(meta->getInfoText()); } else { MapNode n = map.getNode(nodepos); if(nodedef->get(n).tname_tiles[0] == "unknown_block.png"){ @@ -2321,6 +2321,8 @@ void the_game( infostream<<"Ground right-clicked"<<std::endl; // If metadata provides an inventory view, activate it + errorstream<<"Need to implement metadata formspecs"<<std::endl; + #if 0 if(meta && meta->getInventoryDrawSpecString() != "" && !random_input) { infostream<<"Launching custom inventory view"<<std::endl; @@ -2362,6 +2364,9 @@ void the_game( &g_menumgr, dest, wtext))->drop(); } + #else + if(0) /* do nothing */; + #endif // Otherwise report right click to server else { |