Use new let syntax for multiple returns.

This commit is contained in:
Mari the Deer 2023-01-14 19:14:39 +01:00
commit 525b9e33eb
46 changed files with 143 additions and 244 deletions

View file

@ -588,8 +588,7 @@ Class SaltBeam : SWWMNonInteractiveActor
void SpreadOut()
{
special1 = 1;
Vector3 x, y, z;
[x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
let [x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
let t = new("SaltTracer");
t.Trace(pos,cursector,x,speed,TRACE_HitSky,ignore:target);
foreach ( l:t.ShootThroughList )

View file

@ -36,8 +36,7 @@ Class MykradvoTendril : SWWMNonInteractiveActor
void A_Trace()
{
tics = bMISSILEMORE?2:1;
Vector3 x, y, z;
[x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
let [x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
if ( !bSTANDSTILL )
{
let t = new("TendrilTracer");
@ -93,8 +92,7 @@ Class MykradvoTendril : SWWMNonInteractiveActor
if ( bMISSILEMORE && bMISSILEEVENMORE )
{
// spread into sub-tendrils
Vector3 x, y, z;
[x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
let [x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
int ntendies = tracer?clamp(tracer.GetSpawnHealth()/400,2,10):2;
for ( int i=0; i<ntendies; i++ )
{
@ -115,8 +113,7 @@ Class MykradvoTendril : SWWMNonInteractiveActor
if ( !bSTANDSTILL )
{
int numpt = bMISSILEMORE?9:3;
Vector3 x, y, z;
[x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
let [x, y, z] = SWWMUtility.GetAxes(angle,pitch,roll);
for ( int i=0; i<numpt; i++ )
{
double a = FRandom[ExploS](0,360), s = FRandom[ExploS](0,1.);