aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2018-03-26 01:48:25 +0200
committerEugene Sandulenko2018-03-28 17:36:57 +0200
commit5bc90c0a4beb9dddb09f6893f13ffe310585b61b (patch)
tree90e159329bef3da4f6f44c0e6d30c82cbfa2b47e /engines
parentfedbb3d7fefaa5177b191c90341a8c80037d3dee (diff)
downloadscummvm-rg350-5bc90c0a4beb9dddb09f6893f13ffe310585b61b.tar.gz
scummvm-rg350-5bc90c0a4beb9dddb09f6893f13ffe310585b61b.tar.bz2
scummvm-rg350-5bc90c0a4beb9dddb09f6893f13ffe310585b61b.zip
LILLIPUT: Some more renaming
Diffstat (limited to 'engines')
-rw-r--r--engines/lilliput/script.cpp24
-rw-r--r--engines/lilliput/script.h10
2 files changed, 17 insertions, 17 deletions
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp
index 4234ff2668..95b8f4cdf6 100644
--- a/engines/lilliput/script.cpp
+++ b/engines/lilliput/script.cpp
@@ -350,7 +350,7 @@ void LilliputScript::handleOpcodeType2(int curWord) {
OC_sendBroadcastSignal();
break;
case 0x23:
- OC_resetWord16EFE();
+ OC_resetWaitingSignal();
break;
case 0x24:
OC_enableCurrentCharacterScript();
@@ -359,10 +359,10 @@ void LilliputScript::handleOpcodeType2(int curWord) {
OC_IncCurrentCharacterVar1();
break;
case 0x26:
- OC_sub17D23();
+ OC_setCurrentCharacterPos();
break;
case 0x27:
- OC_sub17E6D();
+ OC_setCurrentCharacterBehavior();
break;
case 0x28:
OC_changeCurrentCharacterSprite();
@@ -646,11 +646,11 @@ static const OpCode opCodes2[] = {
/* 0x20 */ { "OC_sendHearSignal", 2, kImmediateValue, kImmediateValue, kNone, kNone, kNone },
/* 0x21 */ { "OC_sendVarSignal", 3, kImmediateValue, kGetValue1, kImmediateValue, kNone, kNone },
/* 0x22 */ { "OC_sendBroadcastSignal", 2, kImmediateValue, kImmediateValue, kNone, kNone, kNone },
-/* 0x23 */ { "OC_resetWord16EFE", 0, kNone, kNone, kNone, kNone, kNone },
+/* 0x23 */ { "OC_resetWaitingSignal", 0, kNone, kNone, kNone, kNone, kNone },
/* 0x24 */ { "OC_enableCurrentCharacterScript", 1, kImmediateValue, kNone, kNone, kNone, kNone }, // stop script
/* 0x25 */ { "OC_incCurrentCharacterVar1", 0, kNone, kNone, kNone, kNone, kNone },
-/* 0x26 */ { "OC_sub17D23", 2, kImmediateValue, kgetPosFromScript, kNone, kNone, kNone },
-/* 0x27 */ { "OC_sub17E6D", 1, kImmediateValue, kNone, kNone, kNone, kNone },
+/* 0x26 */ { "OC_setCurrentCharacterPos", 2, kImmediateValue, kgetPosFromScript, kNone, kNone, kNone },
+/* 0x27 */ { "OC_setCurrentCharacterBehavior", 1, kImmediateValue, kNone, kNone, kNone, kNone },
/* 0x28 */ { "OC_changeCurrentCharacterSprite", 2, kImmediateValue, kImmediateValue, kNone, kNone, kNone },
/* 0x29 */ { "OC_sub17E99", 4, kImmediateValue, kImmediateValue, kImmediateValue, kImmediateValue, kNone },
/* 0x2a */ { "OC_sub17EC5", 4, kImmediateValue, kImmediateValue, kImmediateValue, kImmediateValue, kNone },
@@ -2529,8 +2529,8 @@ void LilliputScript::OC_sendBroadcastSignal() {
sendSignal(type, var2h, _vm->_currentScriptCharacter, var4);
}
-void LilliputScript::OC_resetWord16EFE() {
- debugC(1, kDebugScript, "OC_resetWord16EFE()");
+void LilliputScript::OC_resetWaitingSignal() {
+ debugC(1, kDebugScript, "OC_resetWaitingSignal()");
_vm->_waitingSignal = -1;
_vm->_waitingSignalCharacterId = -1;
@@ -2551,8 +2551,8 @@ void LilliputScript::OC_IncCurrentCharacterVar1() {
++_vm->_currentCharacterAttributes[1];
}
-void LilliputScript::OC_sub17D23() {
- debugC(1, kDebugScript, "OC_sub17D23()");
+void LilliputScript::OC_setCurrentCharacterPos() {
+ debugC(1, kDebugScript, "OC_setCurrentCharacterPos()");
uint16 oper = _currScript->readUint16LE();
Common::Point var1 = getPosFromScript();
@@ -2561,8 +2561,8 @@ void LilliputScript::OC_sub17D23() {
computeOperation(buf + 1, oper, var1.y);
}
-void LilliputScript::OC_sub17E6D() {
- debugC(1, kDebugScriptTBC, "OC_sub17E6D()");
+void LilliputScript::OC_setCurrentCharacterBehavior() {
+ debugC(1, kDebugScriptTBC, "OC_setCurrentCharacterBehavior()");
uint16 var1 = _currScript->readUint16LE();
_vm->_characterBehaviour[_vm->_currentScriptCharacter] = (var1 - 2000) & 0xFF;
diff --git a/engines/lilliput/script.h b/engines/lilliput/script.h
index 213b1d2a86..35aa734ab6 100644
--- a/engines/lilliput/script.h
+++ b/engines/lilliput/script.h
@@ -237,13 +237,13 @@ private:
void OC_setCurrentCharacter();
void OC_sendSeeSignal();
void OC_sendHearSignal();
- void OC_setVarSignal();
- void OC_sub17CD1();
- void OC_resetWord16EFE();
+ void OC_sendVarSignal();
+ void OC_sendBroadcastSignal();
+ void OC_resetWaitingSignal();
void OC_enableCurrentCharacterScript();
void OC_IncCurrentCharacterVar1();
- void OC_sub17D23();
- void OC_sub17E6D();
+ void OC_setCurrentCharacterPos();
+ void OC_setCurrentCharacterBehavior();
void OC_changeCurrentCharacterSprite();
void OC_sub17E99();
void OC_sub17EC5();