mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
bugfix for particle positioning
This commit is contained in:
parent
3eb9c05b4a
commit
6ab51749e8
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user