فهرست منبع

Fixed compile error in ParticleEmitter that occurred when compiling for the android NDK.

Darryl Gough 13 سال پیش
والد
کامیت
da65c4f084
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      gameplay/src/ParticleEmitter.cpp

+ 1 - 1
gameplay/src/ParticleEmitter.cpp

@@ -808,7 +808,7 @@ void ParticleEmitter::update(float elapsedTime)
         {
         {
             if ((int)_timePerEmission > 0)
             if ((int)_timePerEmission > 0)
             {
             {
-                _timeRunning = fmodl(_timeRunning, _timePerEmission);
+                _timeRunning = fmod(_timeRunning, (double)_timePerEmission);
             }
             }
             emitOnce(emitCount);
             emitOnce(emitCount);
         }
         }