From 86b926df1ac5c526540df6625bb0cd24036b86cd Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Mon, 13 Jun 2011 23:43:47 +0000 Subject: [PATCH] fix for shots( magic summoner and so on ). Not shure if I broke something with the new animated shot models. Willvarfar please look at it . --- source/shared_lib/sources/graphics/particle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index 5a5cace53..0f488c0dc 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -796,11 +796,11 @@ void ProjectileParticleSystem::update(){ case tSpiral: { pos= flatPos; #ifdef USE_STREFLOP - pos+= xVector * streflop::cos(tween * trajectoryFrequency * targetVector.length()) * trajectoryScale; - pos+= yVector * streflop::sin(tween * trajectoryFrequency * targetVector.length()) * trajectoryScale; + pos+= xVector * streflop::cos(t * trajectoryFrequency * targetVector.length()) * trajectoryScale; + pos+= yVector * streflop::sin(t * trajectoryFrequency * targetVector.length()) * trajectoryScale; #else - pos+= xVector * cos(tween * trajectoryFrequency * targetVector.length()) * trajectoryScale; - pos+= yVector * sin(tween * trajectoryFrequency * targetVector.length()) * trajectoryScale; + pos+= xVector * cos(t * trajectoryFrequency * targetVector.length()) * trajectoryScale; + pos+= yVector * sin(t * trajectoryFrequency * targetVector.length()) * trajectoryScale; #endif } break;