]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/ImageIO.cpp
Moved visibleloading check inside LoadingScreen
[lugaru.git] / Source / Utils / ImageIO.cpp
index 508c10f54247a9d57412bbdc7c16f7c0e7daed88..95f89544c26b062c5751faa1dd310b2fa4d6c4cd 100644 (file)
@@ -28,8 +28,6 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include <stdio.h>
 #include <zlib.h>
 
-extern bool visibleloading;
-
 /* These two are needed for screenshot */
 extern int kContextWidth;
 extern int kContextHeight;
@@ -51,9 +49,7 @@ ImageRec::~ImageRec()
 
 bool load_image(const char *file_name, ImageRec &tex)
 {
-    if (visibleloading) {
-        Game::LoadingScreen();
-    }
+    Game::LoadingScreen();
 
     if ( tex.data == NULL ) {
         return false;