GRIM: Set the value of system.lastActorTalking. Fixes #119

This commit is contained in:
Giulio Camuffo 2011-05-18 18:37:15 +02:00
parent a1fe3a3807
commit 556efa807e

View file

@ -497,6 +497,13 @@ void L1_SayLine() {
}
if (!msg.empty()) {
actor->sayLine(msg.c_str(), msgId); //background, vol, pan, x, y
// Set the value of "system.lastActortalking".
// Necessary for wait_for_message() (_system.LUA, line 1319)
lua_pushobject(lua_getref(refSystemTable));
lua_pushstring("lastActorTalking");
lua_pushusertag(actor->getId(), MKTAG('A','C','T','R'));
lua_settable();
}
}
}