From 5dba16de0d6c305dc52014723d85b526cefc3ce0 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Mon, 7 Aug 2023 13:02:42 +0100 Subject: [PATCH] Fix up some issues with drawpic(HTTPURL) --- engine/client/r_2d.c | 2 +- engine/common/common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/client/r_2d.c b/engine/client/r_2d.c index 7eb01d347..9b3793ce5 100644 --- a/engine/client/r_2d.c +++ b/engine/client/r_2d.c @@ -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; diff --git a/engine/common/common.c b/engine/common/common.c index 07d083b1c..cb096efd5 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -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;