]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
as realtime no longer suffices to detect same frame, change the "same frame" logic...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Oct 2011 20:39:27 +0000 (20:39 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Oct 2011 20:39:27 +0000 (20:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11476 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 554ecbe715c3e55368b2742125808e1a79e79e49..6fa76b685eddd78a0ccf2d18287aee94d5d959a4 100644 (file)
@@ -222,7 +222,7 @@ qboolean PRVM_ED_CanAlloc(prvm_prog_t *prog, prvm_edict_t *e)
                return false;
        if(prvm_reuseedicts_always_allow == realtime)
                return true;
-       if(realtime <= e->priv.required->freetime && prvm_reuseedicts_neverinsameframe.integer)
+       if(realtime <= e->priv.required->freetime + 0.1 && prvm_reuseedicts_neverinsameframe.integer)
                return false; // never allow reuse in same frame (causes networking trouble)
        if(e->priv.required->freetime < prog->starttime + prvm_reuseedicts_startuptime.value)
                return true;