aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/teenagent.cpp
diff options
context:
space:
mode:
authorD G Turner2012-07-16 14:06:27 +0100
committerD G Turner2012-07-16 14:06:27 +0100
commit28c3aa3024e37e4c7921665863981973c6455eae (patch)
tree1a0e565ac40f4b94d0158334f940e5e8ac5ddd70 /engines/teenagent/teenagent.cpp
parentdad5258c793ade7fd02aea4cbce489ab3d7e1833 (diff)
downloadscummvm-rg350-28c3aa3024e37e4c7921665863981973c6455eae.tar.gz
scummvm-rg350-28c3aa3024e37e4c7921665863981973c6455eae.tar.bz2
scummvm-rg350-28c3aa3024e37e4c7921665863981973c6455eae.zip
TEENAGENT: Migrate two more dseg regions to symbolic addresses.
Diffstat (limited to 'engines/teenagent/teenagent.cpp')
-rw-r--r--engines/teenagent/teenagent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp
index bf626e2aff..08c436bf25 100644
--- a/engines/teenagent/teenagent.cpp
+++ b/engines/teenagent/teenagent.cpp
@@ -248,7 +248,7 @@ Common::Error TeenAgentEngine::loadGameState(int slot) {
inventory->activate(false);
inventory->reload();
- setMusic(res->dseg.get_byte(0xdb90));
+ setMusic(res->dseg.get_byte(dsAddr_currentMusic));
int id = res->dseg.get_byte(0xb4f3);
uint16 x = res->dseg.get_word(0x64af), y = res->dseg.get_word(0x64b1);
@@ -542,7 +542,7 @@ Common::Error TeenAgentEngine::run() {
init();
- CursorMan.pushCursor(res->dseg.ptr(0x00da), 8, 12, 0, 0, 1);
+ CursorMan.pushCursor(res->dseg.ptr(dsAddr_cursor), 8, 12, 0, 0, 1);
syncSoundSettings();
@@ -1042,7 +1042,7 @@ void TeenAgentEngine::setMusic(byte id) {
debugC(0, kDebugMusic, "starting music %u", id);
if (id != 1) // intro music
- *res->dseg.ptr(0xdb90) = id;
+ res->dseg.set_byte(dsAddr_currentMusic, id);
if (_gameDescription->flags & ADGF_CD) {
byte track2cd[] = {7, 2, 0, 9, 3, 6, 8, 10, 4, 5, 11};