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 ffcfec0 commit 00b136b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/magic/spells/SpellsLvl01.cpp
Expand Up @@ -436,7 +436,7 @@ void IgnitSpell::End() {
void IgnitSpell::Update() {

if(m_elapsed < m_duration) {
float a = float(toMs(m_elapsed)) / float(toMs(m_duration));
float a = m_elapsed / m_duration;

if(a >= 1.f) {
a = 1.f;
Expand Down

0 comments on commit 00b136b

Please sign in to comment.