mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed ParticleSystem:clone not duplicating position and area spread properly
This commit is contained in:
@@ -117,7 +117,9 @@ ParticleSystem::ParticleSystem(const ParticleSystem &p)
|
||||
, activeParticles(0)
|
||||
, emissionRate(p.emissionRate)
|
||||
, emitCounter(0.0f)
|
||||
, position(p.position)
|
||||
, areaSpreadDistribution(p.areaSpreadDistribution)
|
||||
, areaSpread(p.areaSpread)
|
||||
, lifetime(p.lifetime)
|
||||
, life(p.lifetime) // Initialize with the maximum life time.
|
||||
, particleLifeMin(p.particleLifeMin)
|
||||
|
||||
@@ -516,9 +516,6 @@ protected:
|
||||
Colorf color;
|
||||
};
|
||||
|
||||
// The max amount of particles.
|
||||
int bufferSize;
|
||||
|
||||
// Pointer to the beginning of the allocated memory.
|
||||
particle *pMem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user