From f7cd5958c57a3242e016326a215e51e9302e6acb Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 13 Jan 2005 08:14:54 +0000 Subject: [PATCH] migrated push thinks back to SV_Physics_Pusher to fix a qc crash when touching a door git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4931 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 9a9fc359..6145c080 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -767,7 +767,6 @@ void SV_Physics_Pusher (edict_t *ent) // advances ent->v->ltime if not blocked SV_PushMove (ent, movetime); - /* if (thinktime > oldltime && thinktime <= ent->v->ltime) { ent->v->nextthink = 0; @@ -776,7 +775,6 @@ void SV_Physics_Pusher (edict_t *ent) pr_global_struct->other = EDICT_TO_PROG(sv.edicts); PR_ExecuteProgram (ent->v->think, "QC function self.think is missing"); } - */ } @@ -1439,14 +1437,7 @@ void SV_Physics (void) { case MOVETYPE_PUSH: case MOVETYPE_FAKEPUSH: - if (ent->v->nextthink && ent->v->ltime > ent->v->nextthink) - { - ent->v->nextthink = 0; - pr_global_struct->time = sv.time; - pr_global_struct->self = EDICT_TO_PROG(ent); - pr_global_struct->other = EDICT_TO_PROG(sv.edicts); - PR_ExecuteProgram (ent->v->think, "QC function self.think is missing"); - } + // push thinks are called from SV_Physics_Pusher break; case MOVETYPE_NONE: case MOVETYPE_FOLLOW: -- 2.39.2