aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/touche.cpp
diff options
context:
space:
mode:
authorGregory Montoir2006-11-05 00:40:35 +0000
committerGregory Montoir2006-11-05 00:40:35 +0000
commit4f4be11631f42fb42c3153871a769f2e4eb1252a (patch)
treea3ac7b79c2b73f07de600467e68f4391bd2cefa1 /engines/touche/touche.cpp
parent102969f8209ba1d75d5d9d51837a0e311eedcf90 (diff)
downloadscummvm-rg350-4f4be11631f42fb42c3153871a769f2e4eb1252a.tar.gz
scummvm-rg350-4f4be11631f42fb42c3153871a769f2e4eb1252a.tar.bz2
scummvm-rg350-4f4be11631f42fb42c3153871a769f2e4eb1252a.zip
removed unneeded opcodes
svn-id: r24618
Diffstat (limited to 'engines/touche/touche.cpp')
-rw-r--r--engines/touche/touche.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index 2c1981ade7..cacf7ded33 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -2142,30 +2142,6 @@ void ToucheEngine::removeItemFromInventory(int inventory, int16 item) {
}
}
-void ToucheEngine::changeInventoryItemState(int flag, int itemNum, int itemRnd, int inventoryItem) {
- const int rnd = getRandomNumber(100) + 1;
- if (inventoryItem) {
- itemNum = _keyCharsTable[_currentKeyCharNum].inventoryItems[itemNum];
- }
- if (_flagsTable[174]) {
- itemNum /= 2;
- _flagsTable[174] = 0;
- }
- int16 value;
- if (itemNum > itemRnd) {
- value = 1;
- } else if (rnd < itemNum / 6) {
- value = 0;
- } else if (rnd <= itemNum) {
- value = 1;
- } else if (rnd >= itemNum * 2) {
- value = 2;
- } else {
- value = 3;
- }
- _flagsTable[flag] = value;
-}
-
void ToucheEngine::resetTalkingVars() {
_talkListCurrent = 0;
_talkListEnd = 0;
@@ -3245,10 +3221,6 @@ void ToucheEngine::setPalette(int firstColor, int colorCount, int rScale, int gS
_system->setPalette(&pal[firstColor * 4], firstColor, colorCount);
}
-void ToucheEngine::copyPaletteColor(int srcColorIndex, int dstColorIndex) {
- memcpy(&_paletteBuffer[dstColorIndex * 4], &_paletteBuffer[srcColorIndex * 4], 4);
-}
-
void ToucheEngine::updateScreenArea(const uint8 *src, int srcPitch, int srcX, int srcY, int dstX, int dstY, int w, int h) {
_system->copyRectToScreen(src + srcY * srcPitch + srcX, srcPitch, dstX, dstY, w, h);
_system->updateScreen();