]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
Got rid of global texture var. Calling load_image directly
[lugaru.git] / Source / GameTick.cpp
index c7670974c7fcd01dc1c2ec000363a5ffba1fd8a8..ea591632aaa143dd4a42aa6badb6c22f98e3d051 100644 (file)
@@ -125,7 +125,6 @@ extern float damagedealt;
 extern int maptype;
 extern int editoractive;
 extern int editorpathtype;
-extern ImageRec texture;
 
 extern float hostiletime;
 
@@ -388,7 +387,8 @@ bool Game::AddClothes(const char *fileName, GLubyte *array)
 {
     LOGFUNC;
     //Load Image
-    bool opened = upload_image(fileName);
+    ImageRec texture;
+    bool opened = load_image(fileName, texture);
 
     float alphanum;
     //Is it valid?