]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameTick.cpp
First step at cleaning image loading.
[lugaru.git] / Source / GameTick.cpp
index e1851c65da2fc128daeb616d95c0142d4268beb5..2136af6d2a1b21f4a927d7651a5f082277b5aa95 100644 (file)
@@ -124,7 +124,7 @@ extern float damagedealt;
 extern int maptype;
 extern int editoractive;
 extern int editorpathtype;
-extern TGAImageRec texture;
+extern ImageRec texture;
 
 extern float hostiletime;
 
@@ -387,10 +387,7 @@ bool Game::AddClothes(const char *fileName, GLubyte *array)
 {
     LOGFUNC;
     //Load Image
-    unsigned char fileNamep[256];
-    CopyCStringToPascal(fileName, fileNamep);
-    bool opened;
-    opened = upload_image(fileNamep, 1);
+    bool opened = upload_image(fileName);
 
     float alphanum;
     //Is it valid?