Fix the infinite think loop when playing honey.

The change to nq SV_RunThink to match that in qw finally bit my bum. I
suspect it's really a bug in the honey progs (using ltime on a non-pusher),
but QF locking up is not very friendly. I want to keep the option of having
a think loop in the same frame for progs that expect it (using
self.nextthink = time), but also NQ's original method of running think
every frame.  Hopefully no progs expect "self.nextthink = time" to run
every frame rather than loop within the current frame.
This commit is contained in:
Bill Currie 2012-05-20 22:45:30 +09:00
parent 85da69a96a
commit 01773c7cd3
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ SV_RunThink (edict_t *ent)
if (ent->free)
return false;
} while (1);
} while (SVfloat (ent, nextthink) >= sv.time);
return true;
}

View File

@ -141,7 +141,7 @@ SV_RunThink (edict_t *ent)
if (ent->free)
return false;
} while (1);
} while (SVfloat (ent, nextthink) >= sv.time);
return true;
}