Skip to content

Commit

Permalink
SpellsLvl03: Use m_elapsed of the base class
Browse files Browse the repository at this point in the history
Fixes: Issue #1074
  • Loading branch information
bsxf-47 committed Oct 12, 2017
1 parent 91541fd commit 8c34e25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/game/magic/spells/SpellsLvl03.cpp
Expand Up @@ -408,7 +408,6 @@ void CreateFoodSpell::Update() {

IceProjectileSpell::IceProjectileSpell()
: SpellBase()
, m_elapsed(ArxDuration_ZERO)
, iNumber(0)
, iMax(0)
, fColor(0)
Expand Down Expand Up @@ -510,8 +509,6 @@ void IceProjectileSpell::End() {

void IceProjectileSpell::Update() {

m_elapsed += g_framedelay2;

if(m_duration - m_elapsed < ArxDurationMs(1000)) {
fColor = (m_duration - m_elapsed) / ArxDurationMs(1000);

Expand Down
1 change: 0 additions & 1 deletion src/game/magic/spells/SpellsLvl03.h
Expand Up @@ -98,7 +98,6 @@ class IceProjectileSpell : public SpellBase {
void Update();

private:
ArxDuration m_elapsed;
int iNumber;
int iMax;
float fColor;
Expand Down

0 comments on commit 8c34e25

Please sign in to comment.