LILLIPUT: Some renaming, fix a warning

This commit is contained in:
Strangerke 2012-09-18 00:17:51 +02:00 committed by Eugene Sandulenko
parent b387257138
commit e059e81bab
3 changed files with 10 additions and 10 deletions

View file

@ -692,7 +692,7 @@ void LilliputEngine::moveCharacters() {
_numCharactersToDisplay = 0; _numCharactersToDisplay = 0;
byte index = _numCharacters - 1; 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--) { for (int i = index; i >= 0; i--) {
if (_rulesBuffer2_5[i] != -1) { if (_rulesBuffer2_5[i] != -1) {
@ -734,8 +734,8 @@ void LilliputEngine::moveCharacters() {
if ((tmpVal2 >= 0) && (tmpVal2 <= 7) && (tmpVal3 >= 0) && (tmpVal3 <= 7)) { if ((tmpVal2 >= 0) && (tmpVal2 <= 7) && (tmpVal3 >= 0) && (tmpVal3 <= 7)) {
_characterRelativePositionX[i] = tmpVal2; _characterRelativePositionX[i] = tmpVal2;
_characterRelativePositionY[i] = tmpVal3; _characterRelativePositionY[i] = tmpVal3;
tmpVal2 = _characterPositionX[i] - _pos16213.x; tmpVal2 = _characterPositionX[i] - pos16213.x;
tmpVal3 = _characterPositionY[i] - _pos16213.y; tmpVal3 = _characterPositionY[i] - pos16213.y;
int tmpVal4 = _characterPositionAltitude[i]; int tmpVal4 = _characterPositionAltitude[i];
_characterDisplayX[i] = ((60 + tmpVal2 - tmpVal3) * 2) & 0xFF; _characterDisplayX[i] = ((60 + tmpVal2 - tmpVal3) * 2) & 0xFF;
_characterDisplayY[i] = (20 + tmpVal2 + tmpVal3 - tmpVal4) & 0xFF; _characterDisplayY[i] = (20 + tmpVal2 + tmpVal3 - tmpVal4) & 0xFF;
@ -1887,8 +1887,8 @@ void LilliputEngine::sub12F37() {
} }
} }
void LilliputEngine::sub13156(bool &forceReturnFl) { void LilliputEngine::keyboard_handleInterfaceShortcuts(bool &forceReturnFl) {
debugC(2, kDebugEngine, "sub13156()"); debugC(2, kDebugEngine, "keyboard_handleInterfaceShortcuts()");
forceReturnFl = false; forceReturnFl = false;
@ -1977,7 +1977,7 @@ void LilliputEngine::handleGameMouseClick() {
checkNumericCode(); checkNumericCode();
bool forceReturnFl = false; bool forceReturnFl = false;
sub13156(forceReturnFl); keyboard_handleInterfaceShortcuts(forceReturnFl);
if (forceReturnFl) if (forceReturnFl)
return; return;

View file

@ -279,7 +279,7 @@ public:
void renderCharacters(byte *buf, Common::Point pos); void renderCharacters(byte *buf, Common::Point pos);
void checkNumericCode(); void checkNumericCode();
void sub13156(bool &forceReturnFl); void keyboard_handleInterfaceShortcuts(bool &forceReturnFl);
byte sub16799(int index, Common::Point param1); byte sub16799(int index, Common::Point param1);
byte getDirection(Common::Point param1, Common::Point param2); byte getDirection(Common::Point param1, Common::Point param2);
void addCharToBuf(byte character); void addCharToBuf(byte character);

View file

@ -1230,9 +1230,9 @@ void LilliputScript::listAllTexts() {
int variantCount = 0; int variantCount = 0;
while (_vm->_packedStrings[index + variantCount] == 0x5B) while (_vm->_packedStrings[index + variantCount] == 0x5B)
++variantCount ; ++variantCount ;
int it = 0; /*
int it = 0;
/*if (variantCount != 0) { if (variantCount != 0) {
for (int j = 0; j < variantCount; j++) { for (int j = 0; j < variantCount; j++) {
decodePackedText(&_vm->_packedStrings[index + variantCount + it]); decodePackedText(&_vm->_packedStrings[index + variantCount + it]);
warning("Text 0x%x variant %d : %s", i, j, _vm->_displayStringBuf); warning("Text 0x%x variant %d : %s", i, j, _vm->_displayStringBuf);