aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2012-07-02 00:27:38 +0200
committerEugene Sandulenko2018-03-28 17:36:57 +0200
commit7554c07be1883e54ab1946cbda881bef272e57f5 (patch)
tree5366b2e2a26946c92cc2888fea558530b89c2c9d
parented9daf2ed649878a8a3eafcbbae4e60989e039ca (diff)
downloadscummvm-rg350-7554c07be1883e54ab1946cbda881bef272e57f5.tar.gz
scummvm-rg350-7554c07be1883e54ab1946cbda881bef272e57f5.tar.bz2
scummvm-rg350-7554c07be1883e54ab1946cbda881bef272e57f5.zip
LILLIPUT: Some more renaming
-rw-r--r--engines/lilliput/lilliput.cpp23
-rw-r--r--engines/lilliput/lilliput.h2
-rw-r--r--engines/lilliput/script.cpp2
3 files changed, 14 insertions, 13 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp
index b377d6c95c..4af671ce27 100644
--- a/engines/lilliput/lilliput.cpp
+++ b/engines/lilliput/lilliput.cpp
@@ -157,7 +157,7 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
_word16EFEl_characterId = -1;
_word1817B = 0;
_savedSurfaceUnderMousePos = Common::Point(0, 0);
- _bool15AC2 = false;
+ _displayGreenHand = false;
_displayStringIndex = 0;
_word1289D = 0;
_numCharacters = 0;
@@ -403,7 +403,7 @@ void LilliputEngine::displayMousePointer() {
_savedSurfaceUnderMousePos = _mouseDisplayPos;
SaveSurfaceUnderMouseCursor(_savedSurfaceUnderMouse, _mouseDisplayPos);
- display16x16IndexedBuf(_bufferIdeogram, _bool15AC2 ? 81 : 80, _mouseDisplayPos);
+ display16x16IndexedBuf(_bufferIdeogram, _displayGreenHand ? 81 : 80, _mouseDisplayPos);
_skipDisplayFlag1 = 1;
_skipDisplayFlag2 = 0;
@@ -1015,7 +1015,7 @@ void LilliputEngine::checkMapClosing(bool &forceReturnFl) {
_displayMap = false;
paletteFadeOut();
- _bool15AC2 = false;
+ _displayGreenHand = false;
unselectInterfaceHotspots();
initGameAreaDisplay();
_scriptHandler->_heroismLevel = 0;
@@ -2103,7 +2103,7 @@ void LilliputEngine::sub1305C(byte index, byte button) {
_scriptHandler->_interfaceHotspotStatus[index] = kHotspotSelected;
if (_rulesBuffer13_1[index] == 1) {
_delayedReactivationAction = true;
- _bool15AC2 = true;
+ _displayGreenHand = true;
} else {
_actionType = 1;
}
@@ -2693,18 +2693,19 @@ void LilliputEngine::loadRules() {
// Chunk 12
_rectNumb = f.readUint16LE();
- assert(_rectNumb <= 40);
- uint16 tmpVal;
+ assert((_rectNumb >= 0) && (_rectNumb <= 40));
for (int i = 0; i < _rectNumb; i++) {
_rectXMinMax[i].min = (int16)f.readByte();
_rectXMinMax[i].max = (int16)f.readByte();
_rectYMinMax[i].min = (int16)f.readByte();
_rectYMinMax[i].max = (int16)f.readByte();
- tmpVal = f.readUint16LE();
- _rulesBuffer12Pos3[i] = Common::Point(tmpVal >> 8, tmpVal & 0xFF);
- tmpVal = f.readUint16LE();
- _rulesBuffer12Pos4[i] = Common::Point(tmpVal >> 8, tmpVal & 0xFF);
+ int16 tmpValX = (int16)f.readByte();
+ int16 tmpValY = (int16)f.readByte();
+ _rulesBuffer12Pos3[i] = Common::Point(tmpValX, tmpValY);
+ tmpValX = (int16)f.readByte();
+ tmpValY = (int16)f.readByte();
+ _rulesBuffer12Pos4[i] = Common::Point(tmpValX, tmpValY);
}
// Chunk 13
@@ -2796,7 +2797,7 @@ void LilliputEngine::unselectInterfaceButton() {
debugC(1, kDebugEngine, "unselectInterfaceButton()");
_delayedReactivationAction = false;
- _bool15AC2 = false;
+ _displayGreenHand = false;
_lastInterfaceHotspotButton = 0;
unselectInterfaceHotspots();
displayInterfaceHotspots();
diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h
index 7f26b05456..5713ab2591 100644
--- a/engines/lilliput/lilliput.h
+++ b/engines/lilliput/lilliput.h
@@ -149,7 +149,7 @@ public:
int8 _word16EFEl_characterId;
uint16 _word1817B;
Common::Point _savedSurfaceUnderMousePos;
- bool _bool15AC2;
+ bool _displayGreenHand;
int _currentDisplayCharacter;
int _displayStringIndex;
int _word1289D;
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp
index 89b414af57..bf616d830d 100644
--- a/engines/lilliput/script.cpp
+++ b/engines/lilliput/script.cpp
@@ -3111,7 +3111,7 @@ void LilliputScript::OC_loadFileAerial() {
_vm->_refreshScreenFlag = true;
_talkingCharacter = -1;
OC_PaletteFadeOut();
- _vm->_bool15AC2 = true;
+ _vm->_displayGreenHand = true;
_vm->displayVGAFile("AERIAL.GFX");
OC_PaletteFadeIn();