mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
85da69a96a
commit
01773c7cd3
2 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ SV_RunThink (edict_t *ent)
|
|||
|
||||
if (ent->free)
|
||||
return false;
|
||||
} while (1);
|
||||
} while (SVfloat (ent, nextthink) >= sv.time);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ SV_RunThink (edict_t *ent)
|
|||
|
||||
if (ent->free)
|
||||
return false;
|
||||
} while (1);
|
||||
} while (SVfloat (ent, nextthink) >= sv.time);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue