Browse Source

Change lifespan constructor parameter type from int to float to match its declared type.

Josh Wilson 20 years ago
parent
commit
2219a758e4

+ 1 - 1
panda/src/particlesystem/pointParticle.cxx

@@ -24,7 +24,7 @@
 // Description : simple constructor
 ////////////////////////////////////////////////////////////////////
 PointParticle::
-PointParticle(int lifespan, bool alive) :
+PointParticle(float lifespan, bool alive) :
   BaseParticle(lifespan, alive) {
   set_oriented(false);
 }

+ 1 - 1
panda/src/particlesystem/pointParticle.h

@@ -28,7 +28,7 @@
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDAPHYSICS PointParticle : public BaseParticle {
 public:
-  PointParticle(int lifespan = 0, bool alive = false);
+  PointParticle(float lifespan = 0.0f, bool alive = false);
   PointParticle(const PointParticle &copy);
   virtual ~PointParticle();