aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJames Brown2003-04-21 14:50:48 +0000
committerJames Brown2003-04-21 14:50:48 +0000
commit3fe8f939c6a2fe30d4a3b0ce0ad3661adae99b5e (patch)
tree0d7a6ed2a17e47d92f702dd591082492b16b5bab /scumm
parenta6bd927456025b45769be588616a3f3c4db5c359 (diff)
downloadscummvm-rg350-3fe8f939c6a2fe30d4a3b0ce0ad3661adae99b5e.tar.gz
scummvm-rg350-3fe8f939c6a2fe30d4a3b0ce0ad3661adae99b5e.tar.bz2
scummvm-rg350-3fe8f939c6a2fe30d4a3b0ce0ad3661adae99b5e.zip
Another half-assed stub, this time for o2_printEgo
svn-id: r7063
Diffstat (limited to 'scumm')
-rw-r--r--scumm/intern.h1
-rw-r--r--scumm/script_v2.cpp13
2 files changed, 13 insertions, 1 deletions
diff --git a/scumm/intern.h b/scumm/intern.h
index e65d518535..0588ae0f88 100644
--- a/scumm/intern.h
+++ b/scumm/intern.h
@@ -231,6 +231,7 @@ protected:
void o2_ifNotState02();
void o2_ifState01();
void o2_ifNotState01();
+ void o2_printEgo();
void o2_actorSet();
void o2_waitForActor();
void o2_waitForSentence();
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index 485ed4039f..4c95f1ad36 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -303,7 +303,7 @@ void Scumm_v2::setupOpcodes() {
OPCODE(o5_getActorMoving),
OPCODE(o2_setState02),
/* D8 */
- OPCODE(o5_printEgo),
+ OPCODE(o2_printEgo),
OPCODE(o5_doSentence),
OPCODE(o5_add),
OPCODE(o5_divide),
@@ -823,3 +823,14 @@ void Scumm_v2::o2_equalZero() {
else
o5_jumpRelative();
}
+
+void Scumm_v2::o2_printEgo() {
+ //_actorToPrintStrFor = (unsigned char)_vars[VAR_EGO];
+ //_messagePtr = _scriptPointer;
+
+ printf("o2_printEgo(%s)\n", _scriptPointer);
+ _scriptPointer += resStrLen(_scriptPointer) + 1;
+ //_messagePtr = addMessageToStack(_messagePtr);
+ //_scriptPointer = _messagePtr;
+}
+