Move tool stuff to tool.{h,cpp}
[oweals/minetest.git] / src / tile.h
index 216d76508ec0347f97a769eb83e5941dc03e6852..da23615c3e32d5eaf212affdf19d414b3cf4d43b 100644 (file)
@@ -283,9 +283,9 @@ struct TileSpec
        TileSpec():
                texture(0),
                alpha(255),
-               material_type(MATERIAL_ALPHA_NONE),
+               //material_type(MATERIAL_ALPHA_NONE),
                // Use this so that leaves don't need a separate material
-               //material_type(MATERIAL_ALPHA_SIMPLE),
+               material_type(MATERIAL_ALPHA_SIMPLE),
                material_flags(
                        //0 // <- DEBUG, Use the one below
                        MATERIAL_FLAG_BACKFACE_CULLING
@@ -304,7 +304,7 @@ struct TileSpec
        }
        
        // Sets everything else except the texture in the material
-       void applyMaterialOptions(video::SMaterial &material)
+       void applyMaterialOptions(video::SMaterial &material) const
        {
                if(alpha != 255 && material_type != MATERIAL_ALPHA_VERTEX)
                        dstream<<"WARNING: TileSpec: alpha != 255 "