diff options
author | Strangerke | 2019-09-13 08:19:12 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | b1bd677ad0a820bf9df71e3e269d3664e572c1ed (patch) | |
tree | 8663b17ec546ff6d23432a9995b9a1ff8af5e5b8 /engines/griffon | |
parent | ac362bafa764dd84e1a6398ca7601e056c3c5142 (diff) | |
download | scummvm-rg350-b1bd677ad0a820bf9df71e3e269d3664e572c1ed.tar.gz scummvm-rg350-b1bd677ad0a820bf9df71e3e269d3664e572c1ed.tar.bz2 scummvm-rg350-b1bd677ad0a820bf9df71e3e269d3664e572c1ed.zip |
GRIFFON: Fix broken comparison
Diffstat (limited to 'engines/griffon')
-rw-r--r-- | engines/griffon/logic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/griffon/logic.cpp b/engines/griffon/logic.cpp index f76245854b..bbbca90a51 100644 --- a/engines/griffon/logic.cpp +++ b/engines/griffon/logic.cpp @@ -2380,7 +2380,7 @@ void GriffonEngine::updateSpellsUnder() { if (spellinfo[i].frame < 0) spellinfo[i].frame = 0; - if (ABS(spellinfo[i].frame) < 0) { + if (ABS(spellinfo[i].frame) < kEpsilon) { _npcinfo[spellinfo[i].npc].attacking = 0; _npcinfo[spellinfo[i].npc].attacknext = _ticks + _npcinfo[spellinfo[i].npc].attackdelay; } |