From e92238edc831a34081790e71249f1459e997974c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 1 Feb 2011 16:17:55 +0200 Subject: This map generator is starting to look pretty good now... also, disabled loading player position from disk because map is regenerated always. --- src/mapblock.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mapblock.cpp') 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; -- cgit v1.2.3