]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/darkplaces-src/prvm_edict.c
Update the darkplaces engine source
[voretournament/voretournament.git] / misc / source / darkplaces-src / prvm_edict.c
index 25f9899af9f434cbbf1ee15af061596e5e9c72be..6dc2a6e871d8d9963bdf69ee0104946429a0b5c6 100644 (file)
@@ -1606,7 +1606,7 @@ static void PRVM_PO_UnparseString(char *out, const char *in, size_t outsize)
                                                *out++ = '\\';
                                                *out++ = '0' + ((*in & 0700) >> 6);
                                                *out++ = '0' + ((*in & 0070) >> 3);
-                                               *out++ = '0' + ((*in & 0007));
+                                               *out++ = '0' +  (*in & 0007)      ;
                                                outsize -= 4;
                                        }
                                }
@@ -2726,9 +2726,7 @@ int PRVM_SetEngineString(prvm_prog_t *prog, const char *s)
        // if it's in the tempstrings area, use a reserved range
        // (otherwise we'd get millions of useless string offsets cluttering the database)
        if (s >= (char *)prog->tempstringsbuf.data && s < (char *)prog->tempstringsbuf.data + prog->tempstringsbuf.maxsize)
-#if 1
                return prog->stringssize + (s - (char *)prog->tempstringsbuf.data);
-#endif
        // see if it's a known string address
        for (i = 0;i < prog->numknownstrings;i++)
                if (prog->knownstrings[i] == s)