From d7aee05d474d26d1f551cda3c1b754c542f30a60 Mon Sep 17 00:00:00 2001 From: Eukara Date: Thu, 2 Aug 2018 20:10:43 +0000 Subject: [PATCH] Fixed typo and changed the envmap paths for now, as screenshot_cubemap cannot save outside /textures git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5282 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/fs.c | 2 +- engine/common/q1bsp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/fs.c b/engine/common/fs.c index 25aaf8766..a18cac5ee 100644 --- a/engine/common/fs.c +++ b/engine/common/fs.c @@ -5542,7 +5542,7 @@ qboolean FS_ChangeGame(ftemanifest_t *man, qboolean allowreloadconfigs, qboolean if (com_homepathenabled) Con_TPrintf("Using home directory \"%s\"\n", com_homepath); else - Con_TPrintf("Disabled home directory suport\n"); + Con_TPrintf("Disabled home directory support\n"); } } diff --git a/engine/common/q1bsp.c b/engine/common/q1bsp.c index ad49596b0..9099241a5 100644 --- a/engine/common/q1bsp.c +++ b/engine/common/q1bsp.c @@ -2389,7 +2389,7 @@ void BSPX_LoadEnvmaps(model_t *mod, bspx_header_t *bspx, void *mod_base) out[i].origin[2] = LittleFloat(in[i].origin[2]); out[i].cubesize = LittleLong(in[i].cubesize); - Q_snprintfz(imagename, sizeof(imagename), "%s/%i_%i_%i", base, (int)mod->envmaps[i].origin[0], (int)mod->envmaps[i].origin[1], (int)mod->envmaps[i].origin[2]); + Q_snprintfz(imagename, sizeof(imagename), "textures/env/%s_%i_%i_%i", base, (int)mod->envmaps[i].origin[0], (int)mod->envmaps[i].origin[1], (int)mod->envmaps[i].origin[2]); out[i].image = Image_GetTexture(imagename, NULL, IF_CUBEMAP|IF_NOREPLACE, NULL, NULL, out[i].cubesize, out[i].cubesize, PTI_INVALID); } @@ -2805,4 +2805,4 @@ void Mod_BSPX_Strip_f(void) Mod_BSPXRW_Free(&ctx); } } -#endif \ No newline at end of file +#endif