From 35aa510ddf2b0c2382b94588ed4293dc71d8bd45 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 6 Jan 2013 12:02:37 +0900 Subject: [PATCH] Break out of think loop if nextthink doesn't progress. This fixes the infinite loop in Sock's shadows mode. Thanks to Spike for helping me with what should be happening. However, we're still uncertain about just how the thinktime/sv.time logic should behave. --- nq/source/sv_phys.c | 2 +- qw/source/sv_phys.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nq/source/sv_phys.c b/nq/source/sv_phys.c index b42561c35..795fc0f6d 100644 --- a/nq/source/sv_phys.c +++ b/nq/source/sv_phys.c @@ -141,7 +141,7 @@ SV_RunThink (edict_t *ent) if (ent->free) return false; - } while (SVfloat (ent, nextthink) >= sv.time); + } while (SVfloat (ent, nextthink) > thinktime); return true; } diff --git a/qw/source/sv_phys.c b/qw/source/sv_phys.c index c98ee9570..e2d08e814 100644 --- a/qw/source/sv_phys.c +++ b/qw/source/sv_phys.c @@ -141,7 +141,7 @@ SV_RunThink (edict_t *ent) if (ent->free) return false; - } while (SVfloat (ent, nextthink) >= sv.time); + } while (SVfloat (ent, nextthink) > thinktime); return true; }