From f08754f302fac584303379ed58c4c44e858ce696 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 8 May 2005 16:41:54 +0000 Subject: [PATCH] Don't need force_retouch git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1002 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_phys.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_phys.c b/engine/server/sv_phys.c index 5813b2bd2..a0c557e4c 100644 --- a/engine/server/sv_phys.c +++ b/engine/server/sv_phys.c @@ -1937,6 +1937,7 @@ SV_Physics qboolean SV_Physics (void) { int i; + qboolean retouch; edict_t *ent; static double old_time; @@ -2004,6 +2005,9 @@ qboolean SV_Physics (void) PR_RunThreads(); + + retouch = (pr_nqglobal_struct->force_retouch && *pr_nqglobal_struct->force_retouch); + // // treat each object in turn // even the world gets a chance to think @@ -2019,7 +2023,7 @@ qboolean SV_Physics (void) // Con_Printf("Entity \"%s\" improperly changed solid type\n", svprogfuncs->stringtable+ent->v->classname); SV_LinkEdict (ent, true); // a change of solidity should always relink the edict. someone messed up. } - else if (pr_global_struct->force_retouch) + else if (retouch) SV_LinkEdict (ent, true); // force retouch even for stationary if (i > 0 && i <= sv.allocated_client_slots) @@ -2043,7 +2047,7 @@ qboolean SV_Physics (void) SV_RunNewmis (); } - if (pr_global_struct->force_retouch) + if (retouch) pr_global_struct->force_retouch-=1; if (EndFrameQC)