Make non-fancy leaf texture to go in texture atlas too
authorPerttu Ahola <celeron55@gmail.com>
Thu, 1 Dec 2011 12:12:47 +0000 (14:12 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 1 Dec 2011 12:12:47 +0000 (14:12 +0200)
src/nodedef.cpp

index f8420c22c2b641cb457790eb9954fa48ed25f2a8..a52a1bbd42d5fdc5598c0743f8adf89adb8e2451 100644 (file)
@@ -532,8 +532,8 @@ public:
                                        f->drawtype = NDT_NORMAL;
                                        f->solidness = 1;
                                        for(u32 i=0; i<6; i++){
-                                               f->tname_tiles[i] = f->tname_tiles[i]
-                                                               + std::string("^[noalpha");
+                                               f->setTexture(i, f->tname_tiles[i]
+                                                               + std::string("^[noalpha"));
                                        }
                                }
                                break;