Skip to content

Commit

Permalink
Use angleToVector
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Mar 30, 2015
1 parent a701659 commit 4992f3e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/graphics/spells/Spells03.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ void CFireBall::Create(Vec3f aeSrc, float afBeta, float afAlpha)
eSrc = aeSrc;
eSrc += angleToVectorXZ(afBeta) * 60.f;

eMove = angleToVectorXZ(afBeta) * 80.f;

eMove.x *= glm::cos(glm::radians(MAKEANGLE(afAlpha)));
eMove.y = glm::sin(glm::radians(MAKEANGLE(afAlpha))) * 80.f;
eMove.z *= glm::cos(glm::radians(MAKEANGLE(afAlpha)));
eMove = angleToVector(Anglef(afAlpha, afBeta, 0.f)) * 80.f;

// Light
lLightId = LightHandle::Invalid;
Expand Down

0 comments on commit 4992f3e

Please sign in to comment.