diff options
author | Dániel Juhász <juhdanad@gmail.com> | 2018-02-10 22:04:16 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-02-10 21:04:16 +0100 |
commit | 3face01a202040e4feff3b0936b4aa89c051c98d (patch) | |
tree | ccdad6773aa9705cc07fdc9f71f28bae395f353e /src/collision.cpp | |
parent | 617d94c8038e3ff035eaeef7ccdfa4f442feb873 (diff) | |
download | minetest-3face01a202040e4feff3b0936b4aa89c051c98d.tar.gz minetest-3face01a202040e4feff3b0936b4aa89c051c98d.tar.bz2 minetest-3face01a202040e4feff3b0936b4aa89c051c98d.zip |
Node definition manager refactor (#7016)
* Rename IWritableNodeDefManager to NodeDefManager
* Make INodeDefManager functions const
* Use "const *NodeDefManager" instead of "*INodeDefManager"
* Remove unused INodeDefManager class
* Merge NodeDefManager and CNodeDefManager
* Document NodeDefManager
Diffstat (limited to 'src/collision.cpp')
-rw-r--r-- | src/collision.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/collision.cpp b/src/collision.cpp index 9ef6b4263..6edae1efc 100644 --- a/src/collision.cpp +++ b/src/collision.cpp @@ -202,8 +202,8 @@ bool wouldCollideWithCeiling( return false; } -static inline void getNeighborConnectingFace(const v3s16 &p, INodeDefManager *nodedef, - Map *map, MapNode n, int v, int *neighbors) +static inline void getNeighborConnectingFace(const v3s16 &p, + const NodeDefManager *nodedef, Map *map, MapNode n, int v, int *neighbors) { MapNode n2 = map->getNodeNoEx(p); if (nodedef->nodeboxConnects(n, n2, v)) @@ -283,7 +283,7 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef, // Object collides into walkable nodes any_position_valid = true; - INodeDefManager *nodedef = gamedef->getNodeDefManager(); + const NodeDefManager *nodedef = gamedef->getNodeDefManager(); const ContentFeatures &f = nodedef->get(n); if (!f.walkable) |