Fix a couple Q_strlwr's that slipped through the cracks.

This commit is contained in:
jdolan 2013-05-03 03:04:19 -04:00
parent 1ec49a4a06
commit 5ee9bd63f1
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@ bool GenSurfInit(){
basepath = g_FuncTable.m_pfnReadProjectKey("basepath");
if (basepath)
{
Q_strlwr (basepath);
strlwr (basepath);
if (strstr(basepath,"baseq3"))
Game = QUAKE3;
else if (strstr (basepath,"baseq2"))

View file

@ -75,7 +75,7 @@ int GetDefSurfaceProps( char *Tex ){
if (NULL != (fpak = fopen(pakfile[Game], "rb")))
{
sprintf(path,"textures/%s.m8",Tex);
Q_strlwr(path);
strlwr(path);
num=fread(&pakheader,1,sizeof(pak_header_t),fpak);
if((size_t)num < sizeof(pak_header_t))
{
@ -116,7 +116,7 @@ int GetDefSurfaceProps( char *Tex ){
// Assume .map will be output to gamedir/maps, then back up
// to the gamedir and append /textures. Ugly but it should work
strcpy(path,gszMapFile);
Q_strlwr(path);
strlwr(path);
p = strstr(path,"maps");
if(!p) return 0;
p[0] = '\0';