used waittill instead of a while loop in the restart function

This commit is contained in:
JezuzLizard 2020-03-09 15:14:02 -07:00 committed by GitHub
parent 4d1f775033
commit 2e94a8346d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,15 +20,9 @@ initialMapRestart()
gscRestart() gscRestart()
{ {
while ( 1 ) level waittill( "end_game" );
{
if ( level.intermission )
{
wait 20; //20 is ideal wait 20; //20 is ideal
map_restart( false ); map_restart( false );
}
wait 1;
}
} }
killAllPlayers() killAllPlayers()