From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/ShipKiller.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'Stars45/ShipKiller.cpp') diff --git a/Stars45/ShipKiller.cpp b/Stars45/ShipKiller.cpp index 1dd7588..9e3c2a6 100644 --- a/Stars45/ShipKiller.cpp +++ b/Stars45/ShipKiller.cpp @@ -139,11 +139,11 @@ ShipKiller::BeginDeathSpiral() if (design->explosion[exp_index].type > 0) { Point exp_loc = ship->Location() + (design->explosion[exp_index].loc * ship->Cam().Orientation()); sim->CreateExplosion(exp_loc, - ship->Velocity(), - design->explosion[exp_index].type, - (float) ship->Radius(), - exp_scale, - ship->GetRegion(), + ship->Velocity(), + design->explosion[exp_index].type, + (float) ship->Radius(), + exp_scale, + ship->GetRegion(), ship); } } @@ -177,11 +177,11 @@ ShipKiller::ExecFrame(double seconds) if (design->explosion[exp_index].type > 0) { Point exp_loc = ship->Location() + (design->explosion[exp_index].loc * ship->Cam().Orientation()); sim->CreateExplosion(exp_loc, - ship->Velocity(), - design->explosion[exp_index].type, - (float) ship->Radius(), - exp_scale, - ship->GetRegion(), + ship->Velocity(), + design->explosion[exp_index].type, + (float) ship->Radius(), + exp_scale, + ship->GetRegion(), ship); } } @@ -191,10 +191,10 @@ ShipKiller::ExecFrame(double seconds) if (design->explosion[i].final) { Point exp_loc = ship->Location() + (design->explosion[i].loc * ship->Cam().Orientation()); sim->CreateExplosion(exp_loc, - ship->Velocity(), - design->explosion[i].type, - (float) ship->Radius(), - exp_scale, + ship->Velocity(), + design->explosion[i].type, + (float) ship->Radius(), + exp_scale, ship->GetRegion()); } } @@ -212,7 +212,7 @@ ShipKiller::ExecFrame(double seconds) if (ship->IsGroundUnit()) { debris_vel *= 2; - + if (debris_vel.y < 0) debris_vel.y *= -1; } @@ -240,27 +240,27 @@ ShipKiller::ExecFrame(double seconds) if (design->debris[i].fire_type > 0) { sim->CreateExplosion(fire_loc, - ship->Velocity(), - design->debris[i].fire_type, + ship->Velocity(), + design->debris[i].fire_type, + exp_scale, exp_scale, - exp_scale, ship->GetRegion(), debris); } else { sim->CreateExplosion(fire_loc, - ship->Velocity(), - Explosion::SMALL_FIRE, + ship->Velocity(), + Explosion::SMALL_FIRE, + exp_scale, exp_scale, - exp_scale, ship->GetRegion(), debris); sim->CreateExplosion(fire_loc, - ship->Velocity(), - Explosion::SMOKE_TRAIL, + ship->Velocity(), + Explosion::SMOKE_TRAIL, + exp_scale * 0.25f, exp_scale * 0.25f, - exp_scale * 0.25f, ship->GetRegion(), debris); } -- cgit v1.1