diff options
Diffstat (limited to 'Stars45/Particles.cpp')
-rw-r--r-- | Stars45/Particles.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/Particles.cpp b/Stars45/Particles.cpp index 5b5c02f..436f568 100644 --- a/Stars45/Particles.cpp +++ b/Stars45/Particles.cpp @@ -16,7 +16,7 @@ #include "Projector.h" #include "Light.h" #include "Bitmap.h" -#include "Game.h" +#include "Clock.h" #include "Random.h" // +--------------------------------------------------------------------+ @@ -57,7 +57,7 @@ blend(a), extra(0.0f), point_sprite(0), emitting(true) for (int i = 0; i < nverts; i++) { intensity[i] = 1.0f; - timestamp[i] = (float) (Game::GetInstance()->GetClock()->GameTime() / 1000.0); + timestamp[i] = (float) (Clock::GetInstance()->GameTime() / 1000.0); scale[i] = (float) (min_scale); angle[i] = (float) (Random(0, 2*PI)); frame[i] = 0; @@ -143,7 +143,7 @@ void Particles::ExecFrame(double seconds) intensity[i] -= (float) (decay * seconds); if (point_sprite->NumFrames() > 1) { - double age = Game::GetInstance()->GetClock()->GameTime()/1000.0 - timestamp[i]; + double age = Clock::GetInstance()->GameTime()/1000.0 - timestamp[i]; int n = (int) (age * point_sprite->FrameRate()); if (n >= point_sprite->NumFrames()) @@ -167,7 +167,7 @@ void Particles::ExecFrame(double seconds) for (int i = nv; i < nverts; i++) { intensity[i] = 1; - timestamp[i] = (float) (Game::GetInstance()->GetClock()->GameTime() / 1000.0); + timestamp[i] = (float) (Clock::GetInstance()->GameTime() / 1000.0); scale[i] = (float) (min_scale); angle[i] = (float) (Random(0, 2*PI)); frame[i] = 0; @@ -189,7 +189,7 @@ void Particles::ExecFrame(double seconds) release[i] = ref_loc; intensity[i] = 1; - timestamp[i] = (float) (Game::GetInstance()->GetClock()->GameTime() / 1000.0); + timestamp[i] = (float) (Clock::GetInstance()->GameTime() / 1000.0); scale[i] = (float) (min_scale); angle[i] = (float) (PI * rand() / 16384.0); frame[i] = 0; |