Code: Select all
image_t *GL_FindImage (char *name, imagetype_t type)
+ char s[128];
// then jump to
// MrG's automatic TGA loading
// search for TGAs to replace .pcx and .wal images
+ if (!strcmp(name+len-4, ".pcx") || !strcmp(name+len-4, ".wal"))
+ {
+ strcpy(s,name);
+ s[len-3]='t'; s[len-2]='g'; s[len-1]='a';
+ image = GL_FindImage(s,type);
+ if (image)
+ return image; }