Retire the "suckables list" + some fixes.
This commit is contained in:
parent
c5e7c0edb8
commit
09f5bfd2f6
9 changed files with 135 additions and 231 deletions
|
|
@ -228,25 +228,6 @@ extend Class SWWMHandler
|
|||
}
|
||||
}
|
||||
}
|
||||
else if ( e.Name ~== "swwmtrimsuckables" )
|
||||
{
|
||||
if ( multiplayer && (e.player != Net_Arbitrator) )
|
||||
{
|
||||
if ( e.player == consoleplayer )
|
||||
Console.Printf("Only the net arbitrator can call this event.");
|
||||
return;
|
||||
}
|
||||
int n = 0;
|
||||
for ( int i=0; i<suckableactors.Size(); i++ )
|
||||
{
|
||||
if ( suckableactors[i] && (suckableactors[i].bSHOOTABLE || suckableactors[i].bMISSILE) ) continue;
|
||||
suckableactors.Delete(i);
|
||||
i--;
|
||||
n++;
|
||||
}
|
||||
Console.Printf("%d suckable actors trimmed.",n);
|
||||
return;
|
||||
}
|
||||
else if ( e.Name ~== "swwmcleareffects" )
|
||||
{
|
||||
if ( multiplayer && (e.player != Net_Arbitrator) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue