From e261a7d6d74f5b01f490d10d6e9cc85fae994e4a Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 20 Apr 2011 14:01:29 +0000 Subject: [PATCH] really fix csprogs.dat.??.po loading git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11074 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_edict.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prvm_edict.c b/prvm_edict.c index c62ea463..e874eaae 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" #include "progsvm.h" +#include "csprogs.h" prvm_prog_t *prog; @@ -2335,7 +2336,7 @@ void PRVM_LoadProgs (const char * filename, int numrequiredfunc, const char **re // later idea: include a list of authorized .po file checksums with the csprogs { qboolean deftrans = !!strcmp(PRVM_NAME, "client"); - const char *realfilename = (strcmp(PRVM_NAME, "client") ? filename : sv.csqc_progname); + const char *realfilename = (strcmp(PRVM_NAME, "client") ? filename : csqc_progname.string); if(deftrans) // once we have dotranslate_ strings, ALWAYS use the opt-in method! { for (i=0 ; iprogs->numglobaldefs ; i++) -- 2.39.2