aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-16 21:41:49 -0500
committerPaul Gilbert2017-01-16 21:41:49 -0500
commit42814d228243cd44b92182828f4f7d9d255aaffc (patch)
treeddaed4dde4a242f4e85752afa2354391f8f16b79 /engines
parent6a955be8ac1394b5257c98a9500fda9f4343c39e (diff)
downloadscummvm-rg350-42814d228243cd44b92182828f4f7d9d255aaffc.tar.gz
scummvm-rg350-42814d228243cd44b92182828f4f7d9d255aaffc.tar.bz2
scummvm-rg350-42814d228243cd44b92182828f4f7d9d255aaffc.zip
TITANIC: Fix if check in CParrot frameMsg
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/npcs/parrot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/npcs/parrot.cpp b/engines/titanic/npcs/parrot.cpp
index 9e6366ace2..a35a0d915c 100644
--- a/engines/titanic/npcs/parrot.cpp
+++ b/engines/titanic/npcs/parrot.cpp
@@ -607,7 +607,7 @@ bool CParrot::FrameMsg(CFrameMsg *msg) {
if ((_npcFlags & NPCFLAG_10000) || hasActiveMovie())
return true;
- if (_newXc > 64) {
+ if (ABS(_newXc - xp) > 64) {
_npcFlags |= NPCFLAG_10000 | NPCFLAG_20000;
if (_newXc >= xp) {