mirror of
https://github.com/JezuzLizard/Public-BO2-Mods.git
synced 2025-06-08 02:58:24 -05:00
used waittill instead of a while loop in the restart function
This commit is contained in:
parent
4d1f775033
commit
2e94a8346d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user