From: divverent Date: Wed, 20 Apr 2011 14:01:29 +0000 (+0000) Subject: really fix csprogs.dat.??.po loading X-Git-Tag: xonotic-v0.6.0~163^2~472 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e261a7d6d74f5b01f490d10d6e9cc85fae994e4a;p=xonotic%2Fdarkplaces.git really fix csprogs.dat.??.po loading git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11074 d7cf8633-e32d-0410-b094-e92efae38249 --- 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++)