From a21a4464f47077a2d8563f052c8764cafaadf620 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 24 Mar 2005 17:17:59 +0000 Subject: [PATCH] Removed need for strlwr git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@919 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/gl_q2bsp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/common/gl_q2bsp.c b/engine/common/gl_q2bsp.c index c583df000..5ed90c935 100644 --- a/engine/common/gl_q2bsp.c +++ b/engine/common/gl_q2bsp.c @@ -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);