Skip to content

Commit

Permalink
LILLIPUT: rename OC_checkFunctionKeyPressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and sev- committed Mar 28, 2018
1 parent de94c90 commit 4dda4ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions engines/lilliput/script.cpp
Expand Up @@ -225,7 +225,7 @@ byte LilliputScript::handleOpcodeType1(int curWord) {
return OC_sub179C2();
break;
case 0x2F:
return OC_checkKeyPressed();
return OC_checkFunctionKeyPressed();
break;
case 0x30:
return OC_sub17A07();
Expand Down Expand Up @@ -602,7 +602,7 @@ static const OpCode opCodes1[] = {
{ "OC_checkSavedMousePos", 0, kNone, kNone, kNone, kNone, kNone },
{ "OC_sub179AE", 0, kNone, kNone, kNone, kNone, kNone },
{ "OC_sub179C2", 1, kgetPosFromScript, kNone, kNone, kNone, kNone },
{ "OC_checkKeyPressed", 1, kImmediateValue, kNone, kNone, kNone, kNone },
{ "OC_checkFunctionKeyPressed", 1, kImmediateValue, kNone, kNone, kNone, kNone },
{ "OC_sub17A07", 3, kImmediateValue, kImmediateValue, kImmediateValue, kNone, kNone },
{ "OC_checkViewPortCharacterTarget", 1, kGetValue1, kNone, kNone, kNone, kNone },
};
Expand Down Expand Up @@ -2052,8 +2052,8 @@ byte LilliputScript::OC_sub179C2() {

return 0;
}
byte LilliputScript::OC_checkKeyPressed() {
debugC(1, kDebugScript, "OC_checkKeyPressed()");
byte LilliputScript::OC_checkFunctionKeyPressed() {
debugC(1, kDebugScript, "OC_checkFunctionKeyPressed()");

static const Common::KeyCode specialKeys[10] = {
Common::KEYCODE_F10, Common::KEYCODE_F1, Common::KEYCODE_F2, Common::KEYCODE_F3, Common::KEYCODE_F4,
Expand Down
2 changes: 1 addition & 1 deletion engines/lilliput/script.h
Expand Up @@ -188,7 +188,7 @@ class LilliputScript {
byte OC_checkSavedMousePos();
byte OC_sub179AE();
byte OC_sub179C2();
byte OC_checkKeyPressed();
byte OC_checkFunctionKeyPressed();
byte OC_sub17A07();
byte OC_checkViewPortCharacterTarget();

Expand Down

0 comments on commit 4dda4ab

Please sign in to comment.