updated all restart functions to use waittill

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

View File

@ -296,16 +296,10 @@ gscRestart()
{
return;
}
while ( 1 )
{
if ( level.intermission )
{
level waittill( "end_game" );
wait 20;
map_restart( false );
}
wait 1;
}
}
emptyLobbyRestart()
{
@ -334,17 +328,11 @@ gscMapChange()
{
return;
}
while ( 1 )
{
if ( level.intermission )
{
level waittill( "end_game" );
wait 20;
mapChange( location() );
map_restart( false );
}
wait 1;
}
}
location()
{