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) 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;

View file

@ -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;