aboutsummaryrefslogtreecommitdiff
path: root/scumm/actor.cpp
diff options
context:
space:
mode:
authorMax Horn2004-03-15 03:09:48 +0000
committerMax Horn2004-03-15 03:09:48 +0000
commitba5aa37dccbb466f70984c8e7c51fbebf757457a (patch)
tree3aa3ba50bd863645eafe5e0aa20978f01aff1fe5 /scumm/actor.cpp
parent759c05f936ab9a0317d28343a799d7c6857c3e27 (diff)
downloadscummvm-rg350-ba5aa37dccbb466f70984c8e7c51fbebf757457a.tar.gz
scummvm-rg350-ba5aa37dccbb466f70984c8e7c51fbebf757457a.tar.bz2
scummvm-rg350-ba5aa37dccbb466f70984c8e7c51fbebf757457a.zip
refactor use of _messagePtr -> instead of using it as an implicit parameter for various methods, pass its value explicitly to those methods. Note: this *should* be just a code transformation, with no change to the program logic - unless I messed up once again <sigh>
svn-id: r13298
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r--scumm/actor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 6523f67916..e2cb63d552 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1144,10 +1144,10 @@ int ScummEngine::getActorFromPos(int x, int y) {
return 0;
}
-void ScummEngine::actorTalk() {
+void ScummEngine::actorTalk(const byte *msg) {
Actor *a;
- _messagePtr = addMessageToStack(_messagePtr, _charsetBuffer, sizeof(_charsetBuffer));
+ _messagePtr = addMessageToStack(msg, _charsetBuffer, sizeof(_charsetBuffer));
// FIXME: Workaround for bugs #770039 and #770049
if (_gameId == GID_LOOM || _gameId == GID_LOOM256) {