mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 14:41:23 +02:00
- bugfix for smoke particle
This commit is contained in:
@@ -2527,6 +2527,7 @@ void Unit::startDamageParticles() {
|
|||||||
ups->setOffset(Vec3f(0,2,0));
|
ups->setOffset(Vec3f(0,2,0));
|
||||||
ups->setDirection(Vec3f(0,1,-0.2f));
|
ups->setDirection(Vec3f(0,1,-0.2f));
|
||||||
ups->setRadius(type->getSize()/3.f);
|
ups->setRadius(type->getSize()/3.f);
|
||||||
|
ups->setShape(Shared::Graphics::UnitParticleSystem::sLinear);
|
||||||
ups->setTexture(CoreData::getInstance().getFireTexture());
|
ups->setTexture(CoreData::getInstance().getFireTexture());
|
||||||
const Game *game = Renderer::getInstance().getGame();
|
const Game *game = Renderer::getInstance().getGame();
|
||||||
ups->setSpeed(2.0f / game->getWorld()->getUpdateFps(this->getFactionIndex()));
|
ups->setSpeed(2.0f / game->getWorld()->getUpdateFps(this->getFactionIndex()));
|
||||||
|
Reference in New Issue
Block a user