libgdx/libgdx — pull request #842 by hneuer (2013-10-18 14:32:59+00:00)
Title: Possible fix for ParticleEffect shows unmodified sprite on the first run

This is a possible fix for Issue #835

The problem seems to be that in ParticleEmitter#update the updateParticle method is called first for all active particles. Then new particles are emitted after that. Those new particle's update method has never been called when they are drawn the first time resulting in the Sprite being drawn as-is.

In this PR I moved the updateParticle calls to the end of the method and tried to keep the logic of the continuous /allowCompletion/emission the same.

Also removed an unnecessary variable in the draw method.