mirror of
https://github.com/JezuzLizard/t6-fastfile-mods.git
synced 2025-06-07 18:07:52 -05:00
Push stashed changes.
This commit is contained in:
parent
f7f3ed71b7
commit
e9c05e5cd5
@ -391,6 +391,7 @@ determine_current_round_type()
|
||||
normal_present = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
@ -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 ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user