diff --git a/polymer/build/src/polymost.c b/polymer/build/src/polymost.c index cb655eaed..7e71500b6 100644 --- a/polymer/build/src/polymost.c +++ b/polymer/build/src/polymost.c @@ -325,7 +325,7 @@ static void uploadtexture(int doalloc, int xsiz, int ysiz, int intexfmt, int tex # include "lzwnew.h" #endif -char TEXCACHEDIR[] = "texcache"; +char TEXCACHEDIR[BMAX_PATH] = "texcache"; typedef struct { char magic[8]; // 'Polymost' diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 5a7547c8d..97d498eb4 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -115,7 +115,7 @@ static char defaultconfilename[BMAX_PATH] = {"EDUKE.CON"}; static char *confilename = defaultconfilename; char *duke3ddef = "duke3d.def"; char mod_dir[BMAX_PATH] = "/"; - +extern char TEXCACHEDIR[BMAX_PATH]; extern int lastvisinc; int g_Shareware = 0; @@ -10818,6 +10818,8 @@ void app_main(int argc,const char **argv) Bstrcat(root,mod_dir); addsearchpath(root); addsearchpath(mod_dir); + Bsprintf(tempbuf,"%s/%s",mod_dir,TEXCACHEDIR); + Bstrcpy(TEXCACHEDIR,tempbuf); } i = initgroupfile(duke3dgrp);