Skip to content

Commit

Permalink
TEENAGENT: Resolve two FIXMEs by adding missing callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Jul 31, 2012
1 parent b01fdfe commit d62bb98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 12 additions & 0 deletions engines/teenagent/callbacks.cpp
Expand Up @@ -599,6 +599,10 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
inventory->add(0x5c);
break;

case 0x41c3:
displayMessage(dsAddr_pullObjMsg2); // "I can't reach it"
break;

case 0x41ca:
rejectMessage();
break;
Expand Down Expand Up @@ -2078,6 +2082,14 @@ bool TeenAgentEngine::processCallback(uint16 addr) {
displayMessage(dsAddr_throwCrumbsToBirdQMsg); // "Should I throw the crumbs to the bird?"
break;

case 0x7cd7:
displayMessage(dsAddr_dontWasteCrumbs); // "I don't want to waste these tasty crumbs"
break;

case 0x7cde:
displayMessage(dsAddr_mightSlipFallInMsg); // "Better not... I might slip and fall in..."
break;

case 0x7ce5: // put spring on the solid ground
playSound(5, 2);
playSound(19, 11);
Expand Down
7 changes: 1 addition & 6 deletions engines/teenagent/resources.h
Expand Up @@ -769,21 +769,16 @@ const uint16 dsAddr_firstBusinessMsg = 0x5e25; // "First I've got some business
// No Digging Knife Message : 0x5e54 to 0x5e8e
const uint16 dsAddr_noDiggingKnifeMsg = 0x5e54; // "Digging it out with the knife could take a hundred years"

// FIXME - Where is this message used?!
// FIXME - Where is this message used?! Unused?
// No Mess On Table Message : 0x5e8f to 0x5ebd
const uint16 dsAddr_noMessOnTableMsg = 0x5e8f; // "I don't want to make more mess on this table"

// Throw Crumbs To Bird Question Message : 0x5ebe to 0x5ee5
const uint16 dsAddr_throwCrumbsToBirdQMsg = 0x5ebe; // "Should I throw the crumbs to the bird?"

// FIXME - Where is this message used?!
// Don't Waste Crumbs Message : 0x5ee6 to 0x5f10
const uint16 dsAddr_dontWasteCrumbs = 0x5ee6; // "I don't want to waste these tasty crumbs"

// FIXME - Where is this message used?!
// Might Slip Fall In Message : 0x5f11 to 0x5f3b
const uint16 dsAddr_mightSlipFallInMsg = 0x5f11; // "Better not... I might slip and fall in..."

// Book Color Message Address Pointers : (6 * 2-byte) = 0x5f3c to 0x5f47
const uint16 dsAddr_bookColorMsgPtr = 0x5f3c;
// Book Color Message #0 : 0x5f48 to 0x5f60
Expand Down

0 comments on commit d62bb98

Please sign in to comment.