diff options
author | Paweł Kołodziejski | 2003-11-16 20:52:57 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-11-16 20:52:57 +0000 |
commit | d5eddef057f1e39c2685304502a7cf2753d5bb65 (patch) | |
tree | 27db48606bf0c6402b6cf9c0f13df5235b929fc2 /scumm/actor.cpp | |
parent | a169876a2f450eb022fb35ad16f3546ee4003f38 (diff) | |
download | scummvm-rg350-d5eddef057f1e39c2685304502a7cf2753d5bb65.tar.gz scummvm-rg350-d5eddef057f1e39c2685304502a7cf2753d5bb65.tar.bz2 scummvm-rg350-d5eddef057f1e39c2685304502a7cf2753d5bb65.zip |
changed some shift operators to *, /
svn-id: r11315
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r-- | scumm/actor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index c38e9833a7..cc3e05a2b5 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1045,7 +1045,7 @@ void Actor::animateLimb(int limb, int f) { aksq = _vm->findResourceData(MKID('AKSQ'), akos); akfo = _vm->findResourceData(MKID('AKFO'), akos); - size = _vm->getResourceDataSize(akfo) >> 1; + size = _vm->getResourceDataSize(akfo) / 2; while (f--) { if (cost.active[limb] != 0) @@ -1103,10 +1103,10 @@ void ScummEngine::resetActorBgs() { int ScummEngine::getActorFromPos(int x, int y) { int i; - if (!testGfxAnyUsageBits(x >> 3)) + if (!testGfxAnyUsageBits(x / 8)) return 0; for (i = 1; i < _numActors; i++) { - if (testGfxUsageBit(x >> 3, i) && !getClass(i, kObjectClassUntouchable) + if (testGfxUsageBit(x / 8, i) && !getClass(i, kObjectClassUntouchable) && y >= _actors[i].top && y <= _actors[i].bottom) { if (_version > 2 || i != VAR(VAR_EGO)) return i; |