Fix up some issues with drawpic(HTTPURL)

This commit is contained in:
Shpoike 2023-08-07 13:02:42 +01:00
parent 0484a48fad
commit 5dba16de0d
2 changed files with 3 additions and 3 deletions

View file

@ -488,7 +488,7 @@ mpic_t *R2D_SafeCachePic (const char *path)
mpic_t *R2D_SafePicFromWad (const char *name)
{
shader_t *s;
if (!qrenderer)
if (!qrenderer || strchr(name, ':'))
return NULL;
s = R_RegisterCustom (NULL, va("gfx/%s", name), SUF_2D, Shader_Default2D, "wad");
return s;

View file

@ -2852,12 +2852,12 @@ void COM_CleanUpPath(char *str)
int criticize = 0;
for (dots = str; *dots; dots++)
{
if (*dots >= 'A' && *dots <= 'Z')
/*if (*dots >= 'A' && *dots <= 'Z')
{
*dots = *dots - 'A' + 'a';
criticize = 1;
}
else if (*dots == '\\')
else */if (*dots == '\\')
{
*dots = '/';
criticize = 2;