summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ShipKiller.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/ShipKiller.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/ShipKiller.cpp')
-rw-r--r--Stars45/ShipKiller.cpp48
1 files changed, 24 insertions, 24 deletions
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);
}