aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2019-09-13 08:19:12 +0200
committerEugene Sandulenko2019-11-13 22:07:08 +0100
commitb1bd677ad0a820bf9df71e3e269d3664e572c1ed (patch)
tree8663b17ec546ff6d23432a9995b9a1ff8af5e5b8 /engines
parentac362bafa764dd84e1a6398ca7601e056c3c5142 (diff)
downloadscummvm-rg350-b1bd677ad0a820bf9df71e3e269d3664e572c1ed.tar.gz
scummvm-rg350-b1bd677ad0a820bf9df71e3e269d3664e572c1ed.tar.bz2
scummvm-rg350-b1bd677ad0a820bf9df71e3e269d3664e572c1ed.zip
GRIFFON: Fix broken comparison
Diffstat (limited to 'engines')
-rw-r--r--engines/griffon/logic.cpp2
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;
}