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;