]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
really fix csprogs.dat.??.po loading
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Apr 2011 14:01:29 +0000 (14:01 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Apr 2011 14:01:29 +0000 (14:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11074 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index c62ea463719b14c85008a7393813db874d7b40d8..e874eaae6602a9377fac137ddcfe98fc7aaa6e4d 100644 (file)
@@ -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 ; i<prog->progs->numglobaldefs ; i++)