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; return;
} }
while ( 1 ) level waittill( "end_game" );
{
if ( level.intermission )
{
wait 20; wait 20;
map_restart( false ); map_restart( false );
} }
wait 1;
}
}
emptyLobbyRestart() emptyLobbyRestart()
{ {
@ -334,17 +328,11 @@ gscMapChange()
{ {
return; return;
} }
while ( 1 ) level waittill( "end_game" );
{
if ( level.intermission )
{
wait 20; wait 20;
mapChange( location() ); mapChange( location() );
map_restart( false ); map_restart( false );
} }
wait 1;
}
}
location() location()
{ {