diff options
author | Gregory Montoir | 2003-12-06 13:15:17 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-06 13:15:17 +0000 |
commit | a17c49d9a7e1522c5f259d7e89eb15ed81f326c3 (patch) | |
tree | 82d8bc72dbb328b04f289617f60cf88ebc3ecb34 /queen/walk.cpp | |
parent | 31411c9fc23f6c03c472dce627297bf3b161a652 (diff) | |
download | scummvm-rg350-a17c49d9a7e1522c5f259d7e89eb15ed81f326c3.tar.gz scummvm-rg350-a17c49d9a7e1522c5f259d7e89eb15ed81f326c3.tar.bz2 scummvm-rg350-a17c49d9a7e1522c5f259d7e89eb15ed81f326c3.zip |
- handle person bank number hack slighlty differently (fix it when loading, not in personSetData)
- remove some useless checks as there are no invalid bob numbers in actor data
- minor cleanups in Area
svn-id: r11520
Diffstat (limited to 'queen/walk.cpp')
-rw-r--r-- | queen/walk.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/queen/walk.cpp b/queen/walk.cpp index e287faa627..d5df70a5f1 100644 --- a/queen/walk.cpp +++ b/queen/walk.cpp @@ -361,7 +361,7 @@ int16 Walk::movePerson(const Person *pp, int16 endx, int16 endy, uint16 curImage initWalkData(); uint16 bobNum = pp->actor->bobNum; - uint16 bankNum = pp->bankNum; + uint16 bankNum = pp->actor->bankNum; uint16 oldx = _graphics->bob(bobNum)->x; uint16 oldy = _graphics->bob(bobNum)->y; @@ -390,13 +390,8 @@ int16 Walk::movePerson(const Person *pp, int16 endx, int16 endy, uint16 curImage can = -1; } - uint16 standingFrame = 0; - if (bobNum <= 3) { - standingFrame = 29 + FRAMES_JOE_XTRA + bobNum; - } - else { - warning("Walk::movePerson() - Wrong bob number : %d", bobNum); - } + uint16 standingFrame = 29 + FRAMES_JOE_XTRA + bobNum; + // make other person face the right direction BobSlot *pbs = _graphics->bob(bobNum); pbs->endx = endx; |