Removed need for strlwr

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@919 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-03-24 17:17:59 +00:00
parent f1e139d0d6
commit a21a4464f4
1 changed files with 6 additions and 2 deletions

View File

@ -1149,7 +1149,7 @@ void CMod_LoadTexInfo (lump_t *l) //yes I know these load from the same place
q2texinfo_t *in;
mtexinfo_t *out;
int i, j, count;
char name[MAX_QPATH];
char name[MAX_QPATH], *lwr;
float len1, len2;
int texcount;
@ -1198,7 +1198,11 @@ void CMod_LoadTexInfo (lump_t *l) //yes I know these load from the same place
}
if (j == texcount) //load a new one
{
strlwr(in->texture);
for (lwr = in->texture; *lwr; lwr++)
{
if (*lwr >= 'A' || *lwr <= 'Z')
*lwr = *lwr - 'A' + 'a';
}
_snprintf (name, sizeof(name), "textures/%s.wal", in->texture);
out->texture = Mod_LoadWall (name);