aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-11-10 09:16:41 +0000
committerPaweł Kołodziejski2003-11-10 09:16:41 +0000
commit6727a31884ecb1d3c4070e5d9610b292c9633402 (patch)
treebd6ab6340e9afdc34a6a88ea11d7e178ed4434e3 /scumm
parenta26f9872ac279555f192c7c2cc3f6919ecd51de8 (diff)
downloadscummvm-rg350-6727a31884ecb1d3c4070e5d9610b292c9633402.tar.gz
scummvm-rg350-6727a31884ecb1d3c4070e5d9610b292c9633402.tar.bz2
scummvm-rg350-6727a31884ecb1d3c4070e5d9610b292c9633402.zip
added subopcode comments
svn-id: r11245
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v2.cpp20
-rw-r--r--scumm/script_v5.cpp2
2 files changed, 11 insertions, 11 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index c138a7a40f..650a80c5b2 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -675,13 +675,13 @@ void ScummEngine_v2::o2_actorOps() {
return;
}
- a = derefActor(act, "actorSet");
+ a = derefActor(act, "actorOps");
switch (_opcode) {
- case 1: // Actor Sound
+ case 1: // SO_SOUND
a->sound[0] = arg;
break;
- case 2: // Actor Set Color
+ case 2: // SO_PALETTE
if (_version == 1)
i = act;
else
@@ -690,13 +690,13 @@ void ScummEngine_v2::o2_actorOps() {
a->palette[i] = arg;
a->needRedraw = true;
break;
- case 3: // Actor Name
+ case 3: // SO_ACTOR_NAME
loadPtrToResource(rtActorName, a->number, NULL);
break;
- case 4: // Actor Costume
+ case 4: // SO_COSTUME
a->setActorCostume(arg);
break;
- case 5: // Talk Color
+ case 5: // SO_TALK_COLOR
if ((_gameId == GID_MANIAC) && (_version == 1))
v1_mm_actor_speech_color[act] = arg;
else
@@ -783,7 +783,7 @@ void ScummEngine_v2::o2_verbOps() {
int slot, state;
switch (verb) {
- case 0: // Delete Verb
+ case 0: // SO_DELETE_VERBS
slot = getVarOrDirectByte(0x80) + 1;
assert(0 < slot && slot < _maxVerbs);
@@ -1243,7 +1243,7 @@ void ScummEngine_v2::o2_lights() {
VAR(VAR_CURRENT_LIGHTS) = 4;
else
VAR(VAR_CURRENT_LIGHTS) = 0;
-; } else
+ } else
VAR(VAR_CURRENT_LIGHTS) = a;
} else if (c == 1) {
_flashlight.xStrips = a;
@@ -1325,7 +1325,7 @@ void ScummEngine_v2::o2_roomOps() {
_opcode = fetchScriptByte();
switch (_opcode & 0x1F) {
- case 1: /* room scroll */
+ case 1: // SO_ROOM_SCROLL
a *= 8;
b *= 8;
if (a < (_screenWidth / 2))
@@ -1339,7 +1339,7 @@ void ScummEngine_v2::o2_roomOps() {
VAR(VAR_CAMERA_MIN_X) = a;
VAR(VAR_CAMERA_MAX_X) = b;
break;
- case 2: /* room color */
+ case 2: // SO_ROOM_COLOR
if (_version == 1) {
// V1 zak needs to know when room color is changed
_roomPalette[0] = 255;
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 27663c2065..2f50a9db85 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1948,7 +1948,7 @@ void ScummEngine_v5::o5_roomOps() {
delete mgr;
break;
}
- case 14: // SO_SAVE_STRING
+ case 14: // SO_LOAD_STRING
{
SaveFile *file;
char filename[256], *s;