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.
This commit is contained in:
Bill Currie 2013-01-06 12:02:37 +09:00
parent 49d07ce452
commit 35aa510ddf
2 changed files with 2 additions and 2 deletions

View File

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

View File

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