1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Eukara 2018-08-02 20:10:43 +00:00
parent a1c252ed54
commit d7aee05d47
2 changed files with 3 additions and 3 deletions

View file

@ -5542,7 +5542,7 @@ qboolean FS_ChangeGame(ftemanifest_t *man, qboolean allowreloadconfigs, qboolean
if (com_homepathenabled) if (com_homepathenabled)
Con_TPrintf("Using home directory \"%s\"\n", com_homepath); Con_TPrintf("Using home directory \"%s\"\n", com_homepath);
else else
Con_TPrintf("Disabled home directory suport\n"); Con_TPrintf("Disabled home directory support\n");
} }
} }

View file

@ -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].origin[2] = LittleFloat(in[i].origin[2]);
out[i].cubesize = LittleLong(in[i].cubesize); 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); out[i].image = Image_GetTexture(imagename, NULL, IF_CUBEMAP|IF_NOREPLACE, NULL, NULL, out[i].cubesize, out[i].cubesize, PTI_INVALID);
} }