diff options
author | athrxx | 2019-02-19 21:30:54 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:19 +0100 |
commit | 77a7f02e9ab60ded0dac5b34228272300a1e80c9 (patch) | |
tree | 10be41def105f8174105469fa25cba185dc5aad3 /engines/kyra/engine | |
parent | 4d934ec30e4199e7cf91885e01f51963032a4637 (diff) | |
download | scummvm-rg350-77a7f02e9ab60ded0dac5b34228272300a1e80c9.tar.gz scummvm-rg350-77a7f02e9ab60ded0dac5b34228272300a1e80c9.tar.bz2 scummvm-rg350-77a7f02e9ab60ded0dac5b34228272300a1e80c9.zip |
KYRA: (EOB) - rename var
Diffstat (limited to 'engines/kyra/engine')
-rw-r--r-- | engines/kyra/engine/eobcommon.h | 2 | ||||
-rw-r--r-- | engines/kyra/engine/sprites_eob.cpp | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/engine/eobcommon.h b/engines/kyra/engine/eobcommon.h index 9e0fdf08b7..9078e50409 100644 --- a/engines/kyra/engine/eobcommon.h +++ b/engines/kyra/engine/eobcommon.h @@ -196,7 +196,7 @@ struct EoBMonsterInPlay { uint8 animStep; uint8 shpIndex; int8 mode; - int8 f_9; + int8 stray; int8 curAttackFrame; int8 spellStatusLeft; int16 hitPointsMax; diff --git a/engines/kyra/engine/sprites_eob.cpp b/engines/kyra/engine/sprites_eob.cpp index d7bfe7413d..55e8aaf002 100644 --- a/engines/kyra/engine/sprites_eob.cpp +++ b/engines/kyra/engine/sprites_eob.cpp @@ -1235,32 +1235,32 @@ void EoBCoreEngine::updateMonsterFollowPath(EoBMonsterInPlay *m, int turnSteps) } void EoBCoreEngine::updateMonstersStraying(EoBMonsterInPlay *m, int a) { - if (m->f_9 >= 0) { - if (m->f_9 == 0) + if (m->stray >= 0) { + if (m->stray == 0) updateMonsterFollowPath(m, -a); int8 d = (m->dir + a) & 3; uint16 bl = calcNewBlockPosition(m->block, d); uint8 flg = _wllWallFlags[_levelBlockProperties[bl].walls[_dscBlockMap[d]]] & 4; - if (m->f_9 == 0) { + if (m->stray == 0) { if (!flg) - m->f_9 = -1; + m->stray = -1; return; } if (flg) { walkMonsterNextStep(m, -1, d); - m->f_9 = -1; + m->stray = -1; return; } } if (walkMonsterNextStep(m, calcNewBlockPosition(m->block, m->dir), -1)) { - m->f_9 = 1; + m->stray = 1; } else { walkMonsterNextStep(m, -1, (m->dir - a) & 3); - m->f_9 = 0; + m->stray = 0; } } |