]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
relax PRVM_EDICT_NUM error checking on saving a savegame so that
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Aug 2012 23:24:06 +0000 (23:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Aug 2012 23:24:06 +0000 (23:24 +0000)
honey.bsp can save game

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11839 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 30a9261845f7f64616dbc8c96a4acb9fdae9b86c..4de128b26bc490f576a947fcf9e4308d4f0aa6f0 100644 (file)
@@ -512,7 +512,7 @@ char *PRVM_UglyValueString (prvm_prog_t *prog, etype_t type, prvm_eval_t *val, c
                line[i] = '\0';
                break;
        case ev_entity:
-               dpsnprintf (line, linelength, "%i", PRVM_NUM_FOR_EDICT(PRVM_PROG_TO_EDICT(val->edict)));
+               dpsnprintf (line, linelength, "%i", val->edict);
                break;
        case ev_function:
                f = prog->functions + val->function;