Skip to content

Commit

Permalink
Use DurationType division operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Mar 5, 2017
1 parent 00b136b commit 4f12378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/magic/spells/SpellsLvl03.cpp
Expand Up @@ -305,7 +305,7 @@ void FireballSpell::Update() {
} else {
if(Random::getf() < 0.9f) {
Vec3f move = Vec3f_ZERO;
float dd = float(toMs(m_elapsed)) / float(toMs(m_createBallDuration)) * 10;
float dd = m_elapsed / m_createBallDuration * 10;

dd = glm::clamp(dd, 1.f, m_level);

Expand Down

0 comments on commit 4f12378

Please sign in to comment.