diff options
author | Strangerke | 2012-09-18 00:17:51 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | e059e81babcb6d0e4eb33382998f59e16e096deb (patch) | |
tree | 0d60eb972f54ce27a7a3ea1a203bb05f6e622c11 /engines/lilliput | |
parent | b387257138ccb19eee1ae0fd264567a8c40f1f5d (diff) | |
download | scummvm-rg350-e059e81babcb6d0e4eb33382998f59e16e096deb.tar.gz scummvm-rg350-e059e81babcb6d0e4eb33382998f59e16e096deb.tar.bz2 scummvm-rg350-e059e81babcb6d0e4eb33382998f59e16e096deb.zip |
LILLIPUT: Some renaming, fix a warning
Diffstat (limited to 'engines/lilliput')
-rw-r--r-- | engines/lilliput/lilliput.cpp | 12 | ||||
-rw-r--r-- | engines/lilliput/lilliput.h | 2 | ||||
-rw-r--r-- | engines/lilliput/script.cpp | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp index 7c6cd8fe52..b191f2a704 100644 --- a/engines/lilliput/lilliput.cpp +++ b/engines/lilliput/lilliput.cpp @@ -692,7 +692,7 @@ void LilliputEngine::moveCharacters() { _numCharactersToDisplay = 0; byte index = _numCharacters - 1; - Common::Point _pos16213 = Common::Point(_scriptHandler->_viewportPos.x << 3, _scriptHandler->_viewportPos.y << 3); + Common::Point pos16213 = Common::Point(_scriptHandler->_viewportPos.x << 3, _scriptHandler->_viewportPos.y << 3); for (int i = index; i >= 0; i--) { if (_rulesBuffer2_5[i] != -1) { @@ -734,8 +734,8 @@ void LilliputEngine::moveCharacters() { if ((tmpVal2 >= 0) && (tmpVal2 <= 7) && (tmpVal3 >= 0) && (tmpVal3 <= 7)) { _characterRelativePositionX[i] = tmpVal2; _characterRelativePositionY[i] = tmpVal3; - tmpVal2 = _characterPositionX[i] - _pos16213.x; - tmpVal3 = _characterPositionY[i] - _pos16213.y; + tmpVal2 = _characterPositionX[i] - pos16213.x; + tmpVal3 = _characterPositionY[i] - pos16213.y; int tmpVal4 = _characterPositionAltitude[i]; _characterDisplayX[i] = ((60 + tmpVal2 - tmpVal3) * 2) & 0xFF; _characterDisplayY[i] = (20 + tmpVal2 + tmpVal3 - tmpVal4) & 0xFF; @@ -1887,8 +1887,8 @@ void LilliputEngine::sub12F37() { } } -void LilliputEngine::sub13156(bool &forceReturnFl) { - debugC(2, kDebugEngine, "sub13156()"); +void LilliputEngine::keyboard_handleInterfaceShortcuts(bool &forceReturnFl) { + debugC(2, kDebugEngine, "keyboard_handleInterfaceShortcuts()"); forceReturnFl = false; @@ -1977,7 +1977,7 @@ void LilliputEngine::handleGameMouseClick() { checkNumericCode(); bool forceReturnFl = false; - sub13156(forceReturnFl); + keyboard_handleInterfaceShortcuts(forceReturnFl); if (forceReturnFl) return; diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h index eca467980f..6f035d810e 100644 --- a/engines/lilliput/lilliput.h +++ b/engines/lilliput/lilliput.h @@ -279,7 +279,7 @@ public: void renderCharacters(byte *buf, Common::Point pos); void checkNumericCode(); - void sub13156(bool &forceReturnFl); + void keyboard_handleInterfaceShortcuts(bool &forceReturnFl); byte sub16799(int index, Common::Point param1); byte getDirection(Common::Point param1, Common::Point param2); void addCharToBuf(byte character); diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index bf616d830d..853f763e7e 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1230,9 +1230,9 @@ void LilliputScript::listAllTexts() { int variantCount = 0; while (_vm->_packedStrings[index + variantCount] == 0x5B) ++variantCount ; - int it = 0; - - /*if (variantCount != 0) { + /* + int it = 0; + if (variantCount != 0) { for (int j = 0; j < variantCount; j++) { decodePackedText(&_vm->_packedStrings[index + variantCount + it]); warning("Text 0x%x variant %d : %s", i, j, _vm->_displayStringBuf); |