]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/tile.cpp
Update Lua API documentation to include minetest.get_modnames()
[dragonfireclient.git] / src / tile.cpp
index 919298fab8d73a2574b0c063f16d9aa966a05a2c..6dbe4c63a606b29ba6b8cef22b8816ebf7e373c6 100644 (file)
@@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "debug.h"
 #include "main.h" // for g_settings
 #include "filesys.h"
-#include "utility.h"
 #include "settings.h"
 #include "mesh.h"
 #include <ICameraSceneNode.h>
@@ -30,6 +29,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "nodedef.h" // For texture atlas making
 #include "gamedef.h"
 #include "util/string.h"
+#include "util/container.h"
+#include "util/thread.h"
+#include "util/numeric.h"
 
 /*
        A cache from texture name to texture path
@@ -1677,6 +1679,9 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg,
                                return false;
                        }
 
+                       // Fill target image with transparency
+                       img->fill(video::SColor(0,0,0,0));
+
                        core::dimension2d<u32> dim = frame_size;
                        core::position2d<s32> pos_dst(0, 0);
                        core::position2d<s32> pos_src(0, frame_index * frame_size.Y);