diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-10-02 01:07:57 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2015-10-02 06:03:36 +0100 |
commit | 8aaae7db05917dbbedebbd1b5616db976dfc2e8e (patch) | |
tree | bf39d114556ef25e477ab4305cbc4c2bd95039f9 /src/mapnode.h | |
parent | 0bf1984d2c9fb3a9dc73303551c18906c3c9482b (diff) | |
download | minetest-8aaae7db05917dbbedebbd1b5616db976dfc2e8e.tar.gz minetest-8aaae7db05917dbbedebbd1b5616db976dfc2e8e.tar.bz2 minetest-8aaae7db05917dbbedebbd1b5616db976dfc2e8e.zip |
Mapnode: Replace rotateAlongYAxis with improved version
Get facedir by using lowest 5 bits of param2 and limiting to 23
More robust, frees up higher param2 bits for other uses
Change lookup table and table index to u8
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 271517391..7cc25c60c 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -236,7 +236,6 @@ struct MapNode v3s16 getWallMountedDir(INodeDefManager *nodemgr) const; void rotateAlongYAxis(INodeDefManager *nodemgr, Rotation rot); - void rotateAlongYAxisFull(INodeDefManager *nodemgr, Rotation rot); /* Gets list of node boxes (used for rendering (NDT_NODEBOX)) |