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()
|
gscRestart()
|
||||||
{
|
{
|
||||||
while ( 1 )
|
level waittill( "end_game" );
|
||||||
{
|
wait 20; //20 is ideal
|
||||||
if ( level.intermission )
|
map_restart( false );
|
||||||
{
|
|
||||||
wait 20; //20 is ideal
|
|
||||||
map_restart( false );
|
|
||||||
}
|
|
||||||
wait 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
killAllPlayers()
|
killAllPlayers()
|
||||||
@ -77,4 +71,4 @@ spawnAllPlayers()
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
level.no_end_game_check = 0;
|
level.no_end_game_check = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user