Fix possible infinite loop

Possibility of an exploiter killing an enemy and disconnecting within the `wait` window to trigger an infinite loop.
This commit is contained in:
INeedGames 2023-10-11 19:33:43 -06:00 committed by RaidMax
parent d7c24dc98f
commit f3adb75d55

View File

@ -143,6 +143,8 @@ waitForFrameThread()
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount ) waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
{ {
self endon( "disconnect" );
currentIndex = self.currentAnglePosition; currentIndex = self.currentAnglePosition;
wait( 0.05 * afterFrameCount ); wait( 0.05 * afterFrameCount );