summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2016-02-20 06:53:56 +0100
committerest31 <MTest31@outlook.com>2016-02-21 17:30:16 +0100
commit354635f9fbe67cebbcd147db94b48983aa3799eb (patch)
treeedcc648f84e37d9cd06dd86fc012a38da503b4fd /src
parentecc8b70182b9ad3aaec910d7c8b32fc54cac824a (diff)
downloadminetest-354635f9fbe67cebbcd147db94b48983aa3799eb.tar.gz
minetest-354635f9fbe67cebbcd147db94b48983aa3799eb.tar.bz2
minetest-354635f9fbe67cebbcd147db94b48983aa3799eb.zip
Dont make fastface if tile is not seamless
Fixes #3378 Closes #3751
Diffstat (limited to 'src')
-rw-r--r--src/mapblock_mesh.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index 42e84b75e..e1ec50ab0 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -885,8 +885,9 @@ static void updateFastFaceRow(
&& next_lights[3] == lights[3]
&& next_tile == tile
&& tile.rotation == 0
- && next_light_source == light_source)
- {
+ && next_light_source == light_source
+ && (tile.material_flags & MATERIAL_FLAG_TILEABLE_HORIZONTAL)
+ && (tile.material_flags & MATERIAL_FLAG_TILEABLE_VERTICAL)) {
next_is_different = false;
}
else{