Skip to content

Commit

Permalink
TEENAGENT: Implement missing callback for talking to Bird in Act 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Aug 2, 2012
1 parent 21d7db6 commit 5c03af4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions engines/teenagent/callbacks.cpp
Expand Up @@ -545,6 +545,12 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
displayMessage(dsAddr_notWantToSleepMsg); // "I don't want to sleep"
break;

case 0x4056:
// FIXME - This is the bird use callback in the first act at
// the mudpool. Current Code based on behaviour. Need to analyse cseg data.
dialog->popMark(scene, 0xdb7a);
break;

case 0x4060:
loadScene(2, Common::Point(28, 180));
scene->setOrientation(2);
Expand Down Expand Up @@ -4920,10 +4926,6 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
default:
warning("unknown callback %04x called", addr);

// FIXME - unknown non-trivial callback 0x4056 called!
// This is the bird use callback in the first act at
// the mudpool. Need to analyse cseg data.

// try decoding trivial callbacks by cseg if not in switch
byte *code = res->cseg.ptr(addr);
if (code[0] == 0xbb && code[3] == 0xe8 && code[6] == 0xc3) {
Expand Down

0 comments on commit 5c03af4

Please sign in to comment.