1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Do not expose CONTENT_* stuff in content_mapnode.h and use a name converter wrapper in old code

This commit is contained in:
Perttu Ahola 2011-11-16 14:08:31 +02:00
parent c0f6395cf0
commit df8346ef4d
14 changed files with 447 additions and 377 deletions

View file

@ -229,7 +229,7 @@ struct TestMapNode
// Transparency
n.setContent(CONTENT_AIR);
assert(nodedef->get(n).light_propagates == true);
n.setContent(CONTENT_STONE);
n.setContent(LEGN(nodedef, "CONTENT_STONE"));
assert(nodedef->get(n).light_propagates == false);
}
};