aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorD G Turner2012-07-27 08:27:13 +0100
committerD G Turner2012-07-27 08:27:13 +0100
commit5859d0fab1f3e195ef75716e9d48ac4bb1b6daf4 (patch)
treef62468920f05edd878b64afe95d11b02f8872271 /engines/teenagent
parentb19c164f1a20d02ccdd88a972e9440faa6d95094 (diff)
downloadscummvm-rg350-5859d0fab1f3e195ef75716e9d48ac4bb1b6daf4.tar.gz
scummvm-rg350-5859d0fab1f3e195ef75716e9d48ac4bb1b6daf4.tar.bz2
scummvm-rg350-5859d0fab1f3e195ef75716e9d48ac4bb1b6daf4.zip
TEENAGENT: Add symbols for idle animation table usage in Actor class.
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/actor.cpp3
-rw-r--r--engines/teenagent/resources.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp
index ef0ca32cf6..8151aa6dee 100644
--- a/engines/teenagent/actor.cpp
+++ b/engines/teenagent/actor.cpp
@@ -31,7 +31,6 @@ namespace TeenAgent {
Actor::Actor(TeenAgentEngine *vm) : _vm(vm), head_index(0), idle_type(0) {}
-//idle animation lists at dseg: 0x6540
Common::Rect Actor::renderIdle(Graphics::Surface *surface, const Common::Point &position, uint8 orientation, int delta_frame, uint zoom, Common::RandomSource &rnd) {
if (index == 0) {
idle_type = rnd.getRandomNumber(2);
@@ -40,7 +39,7 @@ Common::Rect Actor::renderIdle(Graphics::Surface *surface, const Common::Point &
byte *frames_idle;
do {
- frames_idle = _vm->res->dseg.ptr(_vm->res->dseg.get_word(0x6540 + idle_type * 2)) + index;
+ frames_idle = _vm->res->dseg.ptr(_vm->res->dseg.get_word(dsAddr_idleAnimationListPtr + idle_type * 2)) + index;
index += delta_frame;
if (*frames_idle == 0) {
idle_type = rnd.getRandomNumber(2);
diff --git a/engines/teenagent/resources.h b/engines/teenagent/resources.h
index a834dfcbe4..6e1407cdb5 100644
--- a/engines/teenagent/resources.h
+++ b/engines/teenagent/resources.h
@@ -639,6 +639,9 @@ const uint16 saveStateSize = 0x777a;
const uint16 dsAddr_egoX = 0x64af; // 2 bytes
const uint16 dsAddr_egoY = 0x64b1; // 2 bytes
+// Idle Animation List Table : 0x6540 to 0x????
+const uint16 dsAddr_idleAnimationListPtr = 0x6540;
+
// Current Scene Id : 0xb4f3
const uint16 dsAddr_currentScene = 0xb4f3; // 1 byte