From cd0ce1d840ff9b3ac15db1fa2e64f6025fe6f766 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 8 Jul 2011 06:36:36 +0000 Subject: [PATCH] - bugfix for smoke particle --- source/glest_game/type_instances/unit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index ba098c626..eef0bc32e 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -2527,6 +2527,7 @@ void Unit::startDamageParticles() { ups->setOffset(Vec3f(0,2,0)); ups->setDirection(Vec3f(0,1,-0.2f)); ups->setRadius(type->getSize()/3.f); + ups->setShape(Shared::Graphics::UnitParticleSystem::sLinear); ups->setTexture(CoreData::getInstance().getFireTexture()); const Game *game = Renderer::getInstance().getGame(); ups->setSpeed(2.0f / game->getWorld()->getUpdateFps(this->getFactionIndex()));