mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
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:
parent
49d07ce452
commit
35aa510ddf
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue