extern float blurness;
extern float targetblurness;
extern Objects objects;
-extern TGAImageRec texture;
+extern ImageRec texture;
extern bool visibleloading;
extern bool skyboxtexture;
extern int tutoriallevel;
static float patch_size;
float temptexdetail = texdetail;
- //LoadTGA( fileName );
- // Fixing filename so that it works with its own os
- char * FixedFN = ConvertFileName(fileName);
-
- unsigned char fileNamep[256];
- CopyCStringToPascal(FixedFN, fileNamep);
//Load Image
- upload_image( fileNamep , 0);
+ upload_image(ConvertFileName(fileName));
//Is it valid?
if (texture.bpp > 24) {