X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=2136af6d2a1b21f4a927d7651a5f082277b5aa95;hb=34ce0cdd42f673a04aa29ae148d2206420dfd813;hp=e1851c65da2fc128daeb616d95c0142d4268beb5;hpb=6aeefd781d62a9b5b8cf2f4d3a7ba4abaf82f54f;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index e1851c6..2136af6 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -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?