summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ShipKiller.cpp
diff options
context:
space:
mode:
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);
}