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()
{
while ( 1 )
{
if ( level.intermission )
{
wait 20; //20 is ideal
map_restart( false );
}
wait 1;
}
level waittill( "end_game" );
wait 20; //20 is ideal
map_restart( false );
}
killAllPlayers()
@ -77,4 +71,4 @@ spawnAllPlayers()
i++;
}
level.no_end_game_check = 0;
}
}