mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 14:41:54 +00:00
Fix a couple Q_strlwr's that slipped through the cracks.
This commit is contained in:
parent
1ec49a4a06
commit
5ee9bd63f1
2 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@ bool GenSurfInit(){
|
||||||
basepath = g_FuncTable.m_pfnReadProjectKey("basepath");
|
basepath = g_FuncTable.m_pfnReadProjectKey("basepath");
|
||||||
if (basepath)
|
if (basepath)
|
||||||
{
|
{
|
||||||
Q_strlwr (basepath);
|
strlwr (basepath);
|
||||||
if (strstr(basepath,"baseq3"))
|
if (strstr(basepath,"baseq3"))
|
||||||
Game = QUAKE3;
|
Game = QUAKE3;
|
||||||
else if (strstr (basepath,"baseq2"))
|
else if (strstr (basepath,"baseq2"))
|
||||||
|
|
|
@ -75,7 +75,7 @@ int GetDefSurfaceProps( char *Tex ){
|
||||||
if (NULL != (fpak = fopen(pakfile[Game], "rb")))
|
if (NULL != (fpak = fopen(pakfile[Game], "rb")))
|
||||||
{
|
{
|
||||||
sprintf(path,"textures/%s.m8",Tex);
|
sprintf(path,"textures/%s.m8",Tex);
|
||||||
Q_strlwr(path);
|
strlwr(path);
|
||||||
num=fread(&pakheader,1,sizeof(pak_header_t),fpak);
|
num=fread(&pakheader,1,sizeof(pak_header_t),fpak);
|
||||||
if((size_t)num < sizeof(pak_header_t))
|
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
|
// Assume .map will be output to gamedir/maps, then back up
|
||||||
// to the gamedir and append /textures. Ugly but it should work
|
// to the gamedir and append /textures. Ugly but it should work
|
||||||
strcpy(path,gszMapFile);
|
strcpy(path,gszMapFile);
|
||||||
Q_strlwr(path);
|
strlwr(path);
|
||||||
p = strstr(path,"maps");
|
p = strstr(path,"maps");
|
||||||
if(!p) return 0;
|
if(!p) return 0;
|
||||||
p[0] = '\0';
|
p[0] = '\0';
|
||||||
|
|
Loading…
Reference in a new issue