aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan3/actor.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-07-01 20:56:55 -0700
committerPaul Gilbert2019-07-06 15:27:09 -0700
commit5dea66231397c52afc7d2cdeae5989fd5edd0604 (patch)
tree6cd65d939d4051f0d0bade793f4598485547ad47 /engines/glk/alan3/actor.cpp
parent18566feefcb9f4fa4d7395ffa6e6f2a6f0247d0e (diff)
downloadscummvm-rg350-5dea66231397c52afc7d2cdeae5989fd5edd0604.tar.gz
scummvm-rg350-5dea66231397c52afc7d2cdeae5989fd5edd0604.tar.bz2
scummvm-rg350-5dea66231397c52afc7d2cdeae5989fd5edd0604.zip
GLK: ALAN3: Wrapping method calls in longjmp replacement macros
Diffstat (limited to 'engines/glk/alan3/actor.cpp')
-rw-r--r--engines/glk/alan3/actor.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/glk/alan3/actor.cpp b/engines/glk/alan3/actor.cpp
index ff4d89f9a1..337034fcd3 100644
--- a/engines/glk/alan3/actor.cpp
+++ b/engines/glk/alan3/actor.cpp
@@ -61,18 +61,19 @@ StepEntry *stepOf(int actor) {
/*======================================================================*/
-void describeActor(int actor) {
+void describeActor(CONTEXT, int actor) {
ScriptEntry *script = scriptOf(actor);
- if (script != NULL && script->description != 0)
- interpret(script->description);
- else if (hasDescription(actor))
- describeAnything(actor);
- else {
+ if (script != NULL && script->description != 0) {
+ CALL1(interpret, script->description)
+ } else if (hasDescription(actor)) {
+ CALL1(describeAnything, actor)
+ } else {
printMessageWithInstanceParameter(M_SEE_START, actor);
printMessage(M_SEE_END);
+
if (instances[actor].container != 0)
- describeContainer(actor);
+ CALL1(describeContainer, actor)
}
admin[actor].alreadyDescribed = TRUE;
}