diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-01-10 02:06:33 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-10 02:06:33 +1000 |
commit | 3c8e3721199ff5b9f7f454e5a6ecf76a87d3a3f9 (patch) | |
tree | 4fe583818fd5915d0ec2cfd9068bf3e8565dbead /src | |
parent | 2ab97a7821e863eb3372a42781af42e122b238eb (diff) | |
download | minetest-3c8e3721199ff5b9f7f454e5a6ecf76a87d3a3f9.tar.gz minetest-3c8e3721199ff5b9f7f454e5a6ecf76a87d3a3f9.tar.bz2 minetest-3c8e3721199ff5b9f7f454e5a6ecf76a87d3a3f9.zip |
Removed superfluous facedir check in mapblock_mesh.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/mapblock_mesh.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp index f4a44a256..0e5a883f2 100644 --- a/src/mapblock_mesh.cpp +++ b/src/mapblock_mesh.cpp @@ -693,8 +693,7 @@ TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data) // Get rotation for things like chests u8 facedir = mn.getFaceDir(ndef); - if (facedir > 23) - facedir = 0; + static const u16 dir_to_tile[24 * 16] = { // 0 +X +Y +Z -Z -Y -X -> value=tile,rotation |