Push stashed changes.

This commit is contained in:
JezuzLizard 2025-05-25 18:43:20 -07:00
parent f7f3ed71b7
commit e9c05e5cd5
2 changed files with 30 additions and 9 deletions

View File

@ -391,6 +391,7 @@ determine_current_round_type()
normal_present = true;
break;
}
}
for (;;)
{

View File

@ -38,6 +38,10 @@ spawning_random()
aitypes = array_randomize( aitypes );
ai = undefined;
has_normal = false;
max_iterations = 10;
iteration_count = 0;
for (;;)
{
for ( i = 0; i < aitypes.size; i++ )
{
if ( aitypes[ i ] == "normal" )
@ -51,10 +55,26 @@ spawning_random()
break;
}
}
if ( !isdefined( ai ) )
if ( !isdefined( ai ) && has_normal )
{
break;
}
iteration_count++;
if ( iteration_count >= max_iterations )
{
break;
}
}
if ( !isdefined( ai ) && has_normal )
{
ai = [[ level.round_manager_aitype_spawning_funcs[ "normal" ] ]]();
}
else
{
}
if ( isdefined( ai ) )
{