Skip to content

Commit

Permalink
Replace componentwise operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed May 27, 2015
1 parent 66558ed commit f47bcb8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/graphics/spells/Spells03.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ void CIceProjectile::Create(Vec3f aeSrc, float afBeta, float fLevel, EntityHandl
float fBetaRadCos = glm::cos(fBetaRad);
float fBetaRadSin = glm::sin(fBetaRad);

Vec3f s, e, h;

s.x = aeSrc.x;
s.y = aeSrc.y - 100;
s.z = aeSrc.z;

Vec3f e, h;

Vec3f s = aeSrc + Vec3f(0.f, -100.f, 0.f);

float fspelldist = static_cast<float>(iMax * 15);

fspelldist = std::min(fspelldist, 200.0f);
Expand Down

0 comments on commit f47bcb8

Please sign in to comment.