diff options
author | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
commit | 51657e10769faa2617d546a06c42e4c62a19bb50 (patch) | |
tree | 688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/Explosion.cpp | |
parent | db987e23d5dd33a5db8764743facbb906ac22b0f (diff) | |
download | starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2 |
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/Explosion.cpp')
-rw-r--r-- | Stars45/Explosion.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Stars45/Explosion.cpp b/Stars45/Explosion.cpp index 131aac8..06dbbc0 100644 --- a/Stars45/Explosion.cpp +++ b/Stars45/Explosion.cpp @@ -83,7 +83,7 @@ static bool recycles[MAX_EXPLOSION_TYPES]; // +--------------------------------------------------------------------+ Explosion::Explosion(int t, const Vec3& pos, const Vec3& vel, -float exp_scale, float part_scale, +float exp_scale, float part_scale, SimRegion* rgn, SimObject* src) : SimObject("Explosion", t), type(t), particles(0), source(src) { @@ -131,10 +131,10 @@ SimRegion* rgn, SimObject* src) if (num_parts[type] > 0) { particles = new(__FILE__,__LINE__) Particles(particle_bitmaps[type], - num_parts[type], - pos, - Vec3(0.0f, 0.0f, 0.0f), - part_speeds[type] * part_scale, + num_parts[type], + pos, + Vec3(0.0f, 0.0f, 0.0f), + part_speeds[type] * part_scale, part_drags[type], part_scales[type] * part_scale, part_blooms[type] * part_scale, @@ -151,7 +151,7 @@ SimRegion* rgn, SimObject* src) if (rep) rep->MoveTo(pos); - if (light) + if (light) light->MoveTo(pos); } @@ -542,7 +542,7 @@ Explosion::ExecFrame(double seconds) if (source == Sim::GetSim()->GetPlayerShip()) { Ship* ship = (Ship*) source; - if (CameraDirector::GetCameraMode() == CameraDirector::MODE_COCKPIT && + if (CameraDirector::GetCameraMode() == CameraDirector::MODE_COCKPIT && !ship->IsDying()) { if (rep) rep->Hide(); if (particles) particles->Hide(); |