diff options
author | Strangerke | 2013-07-23 09:31:47 +0200 |
---|---|---|
committer | Strangerke | 2013-07-23 09:31:47 +0200 |
commit | dcdf68b0a62391e8ea13464b42eb0f0c1caa8b4b (patch) | |
tree | 617a9c78aa9fe3fe16cb0eba51eeba2457d4368f /engines/mortevielle | |
parent | ee6bb6719c40dc9bdf859e2f49c637bf2ee16dee (diff) | |
download | scummvm-rg350-dcdf68b0a62391e8ea13464b42eb0f0c1caa8b4b.tar.gz scummvm-rg350-dcdf68b0a62391e8ea13464b42eb0f0c1caa8b4b.tar.bz2 scummvm-rg350-dcdf68b0a62391e8ea13464b42eb0f0c1caa8b4b.zip |
MORTEVIELLE: Some more renaming
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/mortevielle.h | 2 | ||||
-rw-r--r-- | engines/mortevielle/outtext.cpp | 31 | ||||
-rw-r--r-- | engines/mortevielle/utils.cpp | 2 |
3 files changed, 19 insertions, 16 deletions
diff --git a/engines/mortevielle/mortevielle.h b/engines/mortevielle/mortevielle.h index f12d55baea..04ecd56ea5 100644 --- a/engines/mortevielle/mortevielle.h +++ b/engines/mortevielle/mortevielle.h @@ -457,7 +457,7 @@ public: Common::Point _prevPos; int _currMenu; int _currAction; - int _fxxBuffer[108]; + int _drawingSizeArr[108]; byte _tabdon[4001]; bool _soundOff; bool _blo; diff --git a/engines/mortevielle/outtext.cpp b/engines/mortevielle/outtext.cpp index c74165e827..3164b51e5d 100644 --- a/engines/mortevielle/outtext.cpp +++ b/engines/mortevielle/outtext.cpp @@ -160,8 +160,8 @@ void TextHandler::taffich() { static const byte tran1[] = { 121, 121, 138, 139, 120 }; static const byte tran2[] = { 150, 150, 152, 152, 100, 110, 159, 100, 100 }; - int cx, handle, npal; - int32 lgt; + int cx, drawingSize, npal; + int32 drawingStartPos; int alllum[16]; int a = _vm->_caff; @@ -213,7 +213,7 @@ void TextHandler::taffich() { _vm->_destinationOk = true; _vm->_mouse.hideMouse(); - lgt = 0; + drawingStartPos = 0; Common::String filename; if ((a != 50) && (a != 51)) { @@ -237,8 +237,8 @@ void TextHandler::taffich() { npal = a; for (cx = 0; cx <= (a - 1); ++cx) - lgt += _vm->_fxxBuffer[cx]; - handle = _vm->_fxxBuffer[a]; + drawingStartPos += _vm->_drawingSizeArr[cx]; + drawingSize = _vm->_drawingSizeArr[a]; filename = "DXX.mor"; } else { @@ -247,15 +247,15 @@ void TextHandler::taffich() { else filename = "DZZ.mor"; - handle = _vm->_fxxBuffer[87]; + drawingSize = _vm->_drawingSizeArr[87]; if (a == 51) { - lgt = handle; - handle = _vm->_fxxBuffer[88]; + drawingStartPos = drawingSize; + drawingSize = _vm->_drawingSizeArr[88]; } _vm->_maff = a; npal = a + 37; } - loadDesFile(filename, lgt, handle); + loadDesFile(filename, drawingStartPos, drawingSize); if (_vm->_currGraphicalDevice == MODE_HERCULES) { for (int i = 0; i <= 15; ++i) { int palh = READ_LE_UINT16(&_vm->_mem[(kAdrPictureComp * 16) + 2 + (i << 1)]); @@ -275,7 +275,7 @@ void TextHandler::taffich() { _vm->setPal(npal); if ((b < 15) || (b == 16) || (b == 17) || (b == 24) || (b == 26) || (b == 50)) { - lgt = 0; + drawingStartPos = 0; if ((b < 15) || (b == 16) || (b == 17) || (b == 24) || (b == 26)) { if (b == 26) b = 18; @@ -284,14 +284,17 @@ void TextHandler::taffich() { else if (b > 15) --b; for (cx = 0; cx <= (b - 1); ++cx) - lgt += _vm->_fxxBuffer[cx + 89]; - handle = _vm->_fxxBuffer[b + 89]; + drawingStartPos += _vm->_drawingSizeArr[cx + 89]; + drawingSize = _vm->_drawingSizeArr[b + 89]; filename = "AXX.mor"; } else if (b == 50) { + // CHECKME: the size of AZZ.mor is 1280 for the DOS version + // and 1260 for the Amiga version. Maybe the 20 bytes + // are a filler, or the size should be variable. + drawingSize = 1260; filename = "AZZ.mor"; - handle = 1260; } - loadAniFile(filename, lgt, handle); + loadAniFile(filename, drawingStartPos, drawingSize); } _vm->_mouse.showMouse(); if ((a < 27) && ((_vm->_maff < 27) || (_vm->_coreVar._currPlace == LANDING)) && (_vm->_currAction != OPCODE_ENTER)) { diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index 63cd7b3661..a0749a9ac7 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -2051,7 +2051,7 @@ void MortevielleEngine::loadPalette() { } for (int i = 0; i < 108; ++i) - _fxxBuffer[i] = f.readSint16LE(); + _drawingSizeArr[i] = f.readSint16LE(); f.close(); if (!f.open("plxx.mor")) |