]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Kill trigraphs. Die die die. Or something.
authorknghtbrd <knghtbrd@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Jul 2002 03:28:10 +0000 (03:28 +0000)
committerknghtbrd <knghtbrd@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Jul 2002 03:28:10 +0000 (03:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1983 d7cf8633-e32d-0410-b094-e92efae38249

pr_edict.c

index 3b1a6b9d24e5d7e0db22badf1e52446881dfcc3c..bf351309ad331e3b39617e44ffb227ea7fb9e128 100644 (file)
@@ -500,7 +500,7 @@ char *PR_GlobalString (int ofs)
        val = (void *)&pr_globals[ofs];
        def = ED_GlobalAtOfs(ofs);
        if (!def)
        val = (void *)&pr_globals[ofs];
        def = ED_GlobalAtOfs(ofs);
        if (!def)
-               sprintf (line,"%i(\?\?\?)", ofs); // LordHavoc: escaping the ?s so it is not a trigraph
+               sprintf (line,"%i(?)", ofs);
        else
        {
                s = PR_ValueString (def->type, val);
        else
        {
                s = PR_ValueString (def->type, val);
@@ -523,7 +523,7 @@ char *PR_GlobalStringNoContents (int ofs)
 
        def = ED_GlobalAtOfs(ofs);
        if (!def)
 
        def = ED_GlobalAtOfs(ofs);
        if (!def)
-               sprintf (line,"%i(\?\?\?)", ofs); // LordHavoc: escaping the ?s so it is not a trigraph
+               sprintf (line,"%i(?)", ofs);
        else
                sprintf (line,"%i(%s)", ofs, pr_strings + def->s_name);
 
        else
                sprintf (line,"%i(%s)", ofs, pr_strings + def->s_name);