aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorMax Horn2009-03-07 19:24:31 +0000
committerMax Horn2009-03-07 19:24:31 +0000
commitf9ecd95d6960341e696ab1aa8262e48135908d51 (patch)
tree4ab853891a0ca47c4d46a2691546e27a7e05b7f9 /engines/made
parent2dfae035ac7351b1161d0466405c1d44d69f701a (diff)
downloadscummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.tar.gz
scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.tar.bz2
scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.zip
Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/detection.cpp2
-rw-r--r--engines/made/redreader.cpp2
-rw-r--r--engines/made/screenfx.cpp22
-rw-r--r--engines/made/script.cpp26
-rw-r--r--engines/made/scriptfuncs.cpp2
-rw-r--r--engines/made/sound.cpp12
6 files changed, 33 insertions, 33 deletions
diff --git a/engines/made/detection.cpp b/engines/made/detection.cpp
index 773b74e36d..a5b30aa041 100644
--- a/engines/made/detection.cpp
+++ b/engines/made/detection.cpp
@@ -275,7 +275,7 @@ static const MadeGameDescription gameDescriptions[] = {
0,
GF_FLOPPY,
1,
- },
+ },
{
// Leather Goddesses of Phobos 2
diff --git a/engines/made/redreader.cpp b/engines/made/redreader.cpp
index 1ce416c9f1..f71f5f756f 100644
--- a/engines/made/redreader.cpp
+++ b/engines/made/redreader.cpp
@@ -366,7 +366,7 @@ void LzhDecompressor::downheap(int i) {
k = heap[i];
while ((j = 2 * i) <= heapsize) {
if (j < heapsize && freq[heap[j]] > freq[heap[j + 1]])
- j++;
+ j++;
if (freq[k] <= freq[heap[j]]) break;
heap[i] = heap[j]; i = j;
}
diff --git a/engines/made/screenfx.cpp b/engines/made/screenfx.cpp
index 91ceb02b89..82864f1daf 100644
--- a/engines/made/screenfx.cpp
+++ b/engines/made/screenfx.cpp
@@ -161,7 +161,7 @@ void ScreenEffects::flash(int flashCount, byte *palette, int colorCount) {
_screen->setRGBPalette(_fxPalette, 0, colorCount);
_screen->updateScreenAndWait(20);
_screen->setRGBPalette(palette, 0, colorCount);
- _screen->updateScreenAndWait(20);
+ _screen->updateScreenAndWait(20);
}
}
@@ -309,7 +309,7 @@ void ScreenEffects::vfx01(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, x, 312);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx02(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -318,7 +318,7 @@ void ScreenEffects::vfx02(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, 312 - x, 312);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx03(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -327,7 +327,7 @@ void ScreenEffects::vfx03(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, y, 190);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx04(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -336,7 +336,7 @@ void ScreenEffects::vfx04(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, 190 - y, 190);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx05(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -346,7 +346,7 @@ void ScreenEffects::vfx05(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, y, 90);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx06(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -356,7 +356,7 @@ void ScreenEffects::vfx06(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, x, 152);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx07(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -366,7 +366,7 @@ void ScreenEffects::vfx07(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, 152 - x, 152);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
// "Screen slide in" right to left
@@ -443,7 +443,7 @@ void ScreenEffects::vfx14(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, i, 27);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -454,7 +454,7 @@ void ScreenEffects::vfx15(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, i, 27);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
void ScreenEffects::vfx16(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) {
@@ -465,7 +465,7 @@ void ScreenEffects::vfx16(Graphics::Surface *surface, byte *palette, byte *newPa
setBlendedPalette(palette, newPalette, colorCount, i, 27);
_screen->updateScreenAndWait(25);
}
- setPalette(palette);
+ setPalette(palette);
}
// Palette fadeout/fadein
diff --git a/engines/made/script.cpp b/engines/made/script.cpp
index c25a807f61..3c3142a6ed 100644
--- a/engines/made/script.cpp
+++ b/engines/made/script.cpp
@@ -585,9 +585,9 @@ void ScriptInterpreter::cmd_send() {
_stack.push(_codeIp - _codeBase);
_stack.push(_runningScriptObjectIndex);
_stack.push(kScriptStackLimit - _localStackPos);
- _localStackPos = _stack.getStackPos();
+ _localStackPos = _stack.getStackPos();
- int16 propertyId = _stack.peek(_localStackPos + argc + 2);
+ int16 propertyId = _stack.peek(_localStackPos + argc + 2);
int16 objectIndex = _stack.peek(_localStackPos + argc + 4);
debug(4, "objectIndex = %d (%04X); propertyId = %d(%04X)", objectIndex, objectIndex, propertyId, propertyId);
@@ -708,25 +708,25 @@ void ScriptInterpreter::dumpScript(int16 objectIndex, int *opcodeStats, int *ext
switch (*sig) {
case 'b':
valueType = 0;
- value = *code++;
+ value = *code++;
break;
case 'B':
- valueType = 1;
- value = *code++;
+ valueType = 1;
+ value = *code++;
break;
case 'w':
valueType = 0;
- value = READ_LE_UINT16(code);
- code += 2;
+ value = READ_LE_UINT16(code);
+ code += 2;
break;
case 'W':
- valueType = 1;
- value = READ_LE_UINT16(code);
- code += 2;
+ valueType = 1;
+ value = READ_LE_UINT16(code);
+ code += 2;
break;
case 'E':
- valueType = 2;
- value = *code++;
+ valueType = 2;
+ value = *code++;
break;
}
switch (valueType) {
@@ -742,7 +742,7 @@ void ScriptInterpreter::dumpScript(int16 objectIndex, int *opcodeStats, int *ext
externStats[value]++;
} else {
snprintf(tempStr, 32, "invalid: %d", value);
- }
+ }
break;
}
codeLine += tempStr;
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp
index 7a07550b6f..77e180628f 100644
--- a/engines/made/scriptfuncs.cpp
+++ b/engines/made/scriptfuncs.cpp
@@ -190,7 +190,7 @@ int16 ScriptFunctions::sfClearScreen(int16 argc, int16 *argv) {
_vm->_mixer->stopHandle(_audioStreamHandle);
_vm->_autoStopSound = false;
}
- _vm->_screen->clearScreen();
+ _vm->_screen->clearScreen();
return 0;
}
diff --git a/engines/made/sound.cpp b/engines/made/sound.cpp
index 5af514d3bc..99186fc008 100644
--- a/engines/made/sound.cpp
+++ b/engines/made/sound.cpp
@@ -42,11 +42,11 @@ void ManholeEgaSoundDecompressor::decompress(byte *source, byte *dest, uint32 si
_writeFlag = false;
_eof = false;
_sample1 = 0x80000;
- _sample2 = 0x800000;
- _sample3 = 0x800000;
- _sample4 = 0x800000;
- _mode = getBit();
- while (!_eof) {
+ _sample2 = 0x800000;
+ _sample3 = 0x800000;
+ _sample4 = 0x800000;
+ _mode = getBit();
+ while (!_eof) {
update1();
update3();
update0();
@@ -233,7 +233,7 @@ void decompressSound(byte *source, byte *dest, uint16 chunkSize, uint16 chunkCou
break;
default:
- return;
+ return;
}