summaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-01 16:17:55 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-01 16:17:55 +0200
commite92238edc831a34081790e71249f1459e997974c (patch)
tree5406e23bb8fd7895f7ac741ad49085a217b7b758 /src/mapblock.cpp
parent56320f7e8de3cf31cbaf11492528016c4446d8f4 (diff)
downloadminetest-e92238edc831a34081790e71249f1459e997974c.tar.gz
minetest-e92238edc831a34081790e71249f1459e997974c.tar.bz2
minetest-e92238edc831a34081790e71249f1459e997974c.zip
This map generator is starting to look pretty good now... also, disabled loading player position from disk because map is regenerated always.
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r--src/mapblock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 3e20cb4cf..b388a82c4 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -700,6 +700,9 @@ void MapBlock::updateMesh(u32 daynight_ratio)
const u16 indices[] = {0,1,2,2,3,0};
video::ITexture *texture = g_irrlicht->getTexture(f.tile.spec);
+ if(texture == NULL)
+ continue;
+
material.setTexture(0, texture);
if(f.tile.alpha != 255)
material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA;