From: divverent Date: Tue, 25 Oct 2011 20:39:27 +0000 (+0000) Subject: as realtime no longer suffices to detect same frame, change the "same frame" logic... X-Git-Tag: xonotic-v0.6.0~163^2~81 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2976ba1a897c9d95a62427ad4fc10c3150f2735;p=xonotic%2Fdarkplaces.git as realtime no longer suffices to detect same frame, change the "same frame" logic for entity reallocating for the first few sec to mean "within 0.1 seconds". git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11476 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index 554ecbe7..6fa76b68 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -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;