Skip to content

Commit

Permalink
spells: Fix reveal and enchant object spells lasting forever
Browse files Browse the repository at this point in the history
Fixes: issue #1268
  • Loading branch information
dscharrer committed Oct 16, 2018
1 parent c871daf commit 55b756b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/game/magic/spells/SpellsLvl03.cpp
Expand Up @@ -141,6 +141,7 @@ void DispellIllusionSpell::Launch() {
ARX_SOUND_PlaySFX(g_snd.SPELL_DISPELL_ILLUSION);

m_duration = GameDurationMs(1000);
m_hasDuration = true;

for(size_t n = 0; n < MAX_SPELLS; n++) {
SpellBase * spell = spells[SpellHandle(n)];
Expand Down
1 change: 1 addition & 0 deletions src/game/magic/spells/SpellsLvl08.cpp
Expand Up @@ -240,6 +240,7 @@ void ExplosionSpell::Update() {

void EnchantWeaponSpell::Launch() {
m_duration = GameDurationMs(20);
m_hasDuration = true;
}

void EnchantWeaponSpell::End() { }
Expand Down

1 comment on commit 55b756b

@dscharrer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They changes are there because they are fun to do - that is all that is needed for a hobby project. Some of them fix bugs, some improve things in other ways, others make future improvements easier. This commit is a fix for a regression (http://arx.vg/1268) which was reported by a user.

The next release will be published when it's ready. I am fully aware how long it has been.

Please sign in to comment.