mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-28 14:41:57 +00:00
Fix up some issues with drawpic(HTTPURL)
This commit is contained in:
parent
0484a48fad
commit
5dba16de0d
2 changed files with 3 additions and 3 deletions
|
@ -488,7 +488,7 @@ mpic_t *R2D_SafeCachePic (const char *path)
|
||||||
mpic_t *R2D_SafePicFromWad (const char *name)
|
mpic_t *R2D_SafePicFromWad (const char *name)
|
||||||
{
|
{
|
||||||
shader_t *s;
|
shader_t *s;
|
||||||
if (!qrenderer)
|
if (!qrenderer || strchr(name, ':'))
|
||||||
return NULL;
|
return NULL;
|
||||||
s = R_RegisterCustom (NULL, va("gfx/%s", name), SUF_2D, Shader_Default2D, "wad");
|
s = R_RegisterCustom (NULL, va("gfx/%s", name), SUF_2D, Shader_Default2D, "wad");
|
||||||
return s;
|
return s;
|
||||||
|
|
|
@ -2852,12 +2852,12 @@ void COM_CleanUpPath(char *str)
|
||||||
int criticize = 0;
|
int criticize = 0;
|
||||||
for (dots = str; *dots; dots++)
|
for (dots = str; *dots; dots++)
|
||||||
{
|
{
|
||||||
if (*dots >= 'A' && *dots <= 'Z')
|
/*if (*dots >= 'A' && *dots <= 'Z')
|
||||||
{
|
{
|
||||||
*dots = *dots - 'A' + 'a';
|
*dots = *dots - 'A' + 'a';
|
||||||
criticize = 1;
|
criticize = 1;
|
||||||
}
|
}
|
||||||
else if (*dots == '\\')
|
else */if (*dots == '\\')
|
||||||
{
|
{
|
||||||
*dots = '/';
|
*dots = '/';
|
||||||
criticize = 2;
|
criticize = 2;
|
||||||
|
|
Loading…
Reference in a new issue