bugfix for particle positioning

This commit is contained in:
titiger 2014-11-26 01:51:45 +01:00
parent 3eb9c05b4a
commit 6ab51749e8

View File

@ -2743,14 +2743,14 @@ bool Unit::update() {
}
for(UnitParticleSystems::iterator it= unitParticleSystems.begin(); it != unitParticleSystems.end(); ++it) {
if(Renderer::getInstance().validateParticleSystemStillExists((*it),rsGame) == true) {
(*it)->setPos(getCurrMidHeightVector());
(*it)->setPos(getCurrVectorForParticlesystems());
(*it)->setRotation(getRotation());
(*it)->setUnitModel(getCurrentModelPtr());
}
}
for(UnitParticleSystems::iterator it= damageParticleSystems.begin(); it != damageParticleSystems.end(); ++it) {
if(Renderer::getInstance().validateParticleSystemStillExists((*it),rsGame) == true) {
(*it)->setPos(getCurrMidHeightVector());
(*it)->setPos(getCurrVectorForParticlesystems());
(*it)->setRotation(getRotation());
(*it)->setUnitModel(getCurrentModelPtr());
}