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 )
{
self endon( "disconnect" );
currentIndex = self.currentAnglePosition;
wait( 0.05 * afterFrameCount );
@ -260,4 +262,4 @@ Callback_PlayerDisconnect()
{
level notify( "disconnected", self );
self [[maps\mp\gametypes\_globallogic_player::callback_playerdisconnect]]();
}
}