diff options
author | Adrian Frühwirth | 2018-04-19 12:08:31 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-04-19 12:08:31 +0200 |
commit | 9bee9e1ba66db0ca27f13a7a09f839521c1e8b3f (patch) | |
tree | 09b3dc96b604095304ed8b7dfa5fbe1fdc08e07a | |
parent | 25aa60726ddbcd444043488e5c1756630637891a (diff) | |
download | scummvm-rg350-9bee9e1ba66db0ca27f13a7a09f839521c1e8b3f.tar.gz scummvm-rg350-9bee9e1ba66db0ca27f13a7a09f839521c1e8b3f.tar.bz2 scummvm-rg350-9bee9e1ba66db0ca27f13a7a09f839521c1e8b3f.zip |
JANITORIAL: Fix whitespace
38 files changed, 98 insertions, 98 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_midi.cpp b/audio/softsynth/fmtowns_pc98/towns_midi.cpp index 46b1a6406d..c02b047153 100644 --- a/audio/softsynth/fmtowns_pc98/towns_midi.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_midi.cpp @@ -572,7 +572,7 @@ void TownsMidiOutputChannel::keyOff() { void TownsMidiOutputChannel::keyOnSetFreq(uint16 frq) { uint16 note = (frq << 1) >> 8; - frq = (_freqMSB[note] << 11) | _freqLSB[note] ; + frq = (_freqMSB[note] << 11) | _freqLSB[note]; out(0xa4, frq >> 8); out(0xa0, frq & 0xff); //out(0x28, 0x00); diff --git a/backends/fs/amigaos4/amigaos4-fs.cpp b/backends/fs/amigaos4/amigaos4-fs.cpp index 09ba3a1c83..134193a65b 100644 --- a/backends/fs/amigaos4/amigaos4-fs.cpp +++ b/backends/fs/amigaos4/amigaos4-fs.cpp @@ -266,7 +266,7 @@ bool AmigaOSFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b if (context) { struct ExamineData * pExd = NULL; // NB: No need to free the value after usage, everything will be dealt with by the DirContext release - AmigaOSFilesystemNode *entry ; + AmigaOSFilesystemNode *entry; while ( (pExd = IDOS->ExamineDir(context)) ) { if ( (EXD_IS_FILE(pExd) && ( Common::FSNode::kListFilesOnly == mode )) || (EXD_IS_DIRECTORY(pExd) && ( Common::FSNode::kListDirectoriesOnly == mode )) diff --git a/backends/platform/dc/dc-fs.cpp b/backends/platform/dc/dc-fs.cpp index 1cc7b56710..a4d2675080 100644 --- a/backends/platform/dc/dc-fs.cpp +++ b/backends/platform/dc/dc-fs.cpp @@ -167,5 +167,5 @@ AbstractFSNode *OSystem_Dreamcast::makeCurrentDirectoryFileNode() const { AbstractFSNode *OSystem_Dreamcast::makeFileNodePath(const Common::String &path) const { AbstractFSNode *node = RoninCDFileNode::makeFileNodePath(path); - return (node? node : new RoninCDNonexistingNode(path)); + return (node ? node : new RoninCDNonexistingNode(path)); } diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp index 42708d299b..c6d7d62f22 100644 --- a/backends/platform/ds/arm9/source/dsmain.cpp +++ b/backends/platform/ds/arm9/source/dsmain.cpp @@ -440,12 +440,12 @@ void playSound(const void *data, u32 length, bool loop, bool adpcm, int rate) { soundControl.count = 0; } - soundControl.data[soundControl.count].data = data; - soundControl.data[soundControl.count].len = length | (loop? 0x80000000: 0x00000000); - soundControl.data[soundControl.count].rate = rate; // 367 samples per frame - soundControl.data[soundControl.count].pan = 64; - soundControl.data[soundControl.count].vol = 127; - soundControl.data[soundControl.count].format = adpcm? 2: 0; + soundControl.data[soundControl.count].data = data; + soundControl.data[soundControl.count].len = length | (loop ? 0x80000000 : 0x00000000); + soundControl.data[soundControl.count].rate = rate; // 367 samples per frame + soundControl.data[soundControl.count].pan = 64; + soundControl.data[soundControl.count].vol = 127; + soundControl.data[soundControl.count].format = adpcm ? 2 : 0; soundControl.count++; @@ -641,7 +641,7 @@ void displayMode8Bit() { displayModeIs8Bit = true; if (isCpuScalerEnabled()) { - videoSetMode(MODE_5_2D | (consoleEnable? DISPLAY_BG0_ACTIVE: 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); + videoSetMode(MODE_5_2D | (consoleEnable ? DISPLAY_BG0_ACTIVE : 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); videoSetModeSub(MODE_3_2D /*| DISPLAY_BG0_ACTIVE*/ | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); //sub bg 0 will be used to print text vramSetBankA(VRAM_A_MAIN_BG_0x06000000); @@ -660,7 +660,7 @@ void displayMode8Bit() { BG3_YDY = (int) ((200.0f / 192.0f) * 256); } else { - videoSetMode(MODE_5_2D | (consoleEnable? DISPLAY_BG0_ACTIVE: 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); + videoSetMode(MODE_5_2D | (consoleEnable ? DISPLAY_BG0_ACTIVE : 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); videoSetModeSub(MODE_3_2D /*| DISPLAY_BG0_ACTIVE*/ | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); //sub bg 0 will be used to print text vramSetBankA(VRAM_A_MAIN_BG_0x06000000); @@ -691,7 +691,7 @@ void displayMode8Bit() { consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 2, 0, true, true); // Set this again because consoleinit resets it - videoSetMode(MODE_5_2D | (consoleEnable? DISPLAY_BG0_ACTIVE: 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); + videoSetMode(MODE_5_2D | (consoleEnable ? DISPLAY_BG0_ACTIVE : 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); // Move the cursor to the bottom of the screen using ANSI escape code consolePrintf("\033[23;0f"); @@ -971,7 +971,7 @@ void displayMode16BitFlipBuffer() { u16 *back = get16BitBackBuffer(); // highBuffer = !highBuffer; -// BG3_CR = BG_BMP16_512x256 | BG_BMP_RAM(highBuffer? 1: 0); +// BG3_CR = BG_BMP16_512x256 | BG_BMP_RAM(highBuffer ? 1 : 0); if (isCpuScalerEnabled()) { Rescale_320x256x1555_To_256x256x1555(BG_GFX, back, 512, 512); @@ -1806,13 +1806,13 @@ void triggerIcon(int imageNum) { void setIcon(int num, int x, int y, int imageNum, int flags, bool enable) { - sprites[num].attribute[0] = ATTR0_BMP | (enable? (y & 0xFF): 192) | (!enable? ATTR0_DISABLED: 0); + sprites[num].attribute[0] = ATTR0_BMP | (enable ? (y & 0xFF) : 192) | (!enable ? ATTR0_DISABLED : 0); sprites[num].attribute[1] = ATTR1_SIZE_32 | (x & 0x1FF) | flags; sprites[num].attribute[2] = ATTR2_ALPHA(1)| (imageNum * 16); } void setIconMain(int num, int x, int y, int imageNum, int flags, bool enable) { - spritesMain[num].attribute[0] = ATTR0_BMP | (y & 0xFF) | (!enable? ATTR0_DISABLED: 0); + spritesMain[num].attribute[0] = ATTR0_BMP | (y & 0xFF) | (!enable ? ATTR0_DISABLED : 0); spritesMain[num].attribute[1] = ATTR1_SIZE_32 | (x & 0x1FF) | flags; spritesMain[num].attribute[2] = ATTR2_ALPHA(1)| (imageNum * 16); } @@ -1842,7 +1842,7 @@ void updateStatus() { } if (indyFightState) { - setIcon(1, (190 - 32), 150, 3, (indyFightRight? 0: ATTR1_FLIP_X), true); + setIcon(1, (190 - 32), 150, 3, (indyFightRight ? 0 : ATTR1_FLIP_X), true); // consolePrintf("%d\n", indyFightRight); } else { // setIcon(1, 0, 0, 0, 0, false); diff --git a/backends/plugins/elf/version.cpp b/backends/plugins/elf/version.cpp index ac999e1d7c..e91ec6b172 100644 --- a/backends/plugins/elf/version.cpp +++ b/backends/plugins/elf/version.cpp @@ -27,6 +27,6 @@ const char *gScummVMPluginBuildDate = "Git Master"; /* ScummVM Git Master */ #else const char *gScummVMPluginBuildDate __attribute__((visibility("hidden"))) = - __DATE__ " " __TIME__ ; + __DATE__ " " __TIME__; #endif #endif diff --git a/common/unzip.cpp b/common/unzip.cpp index 1f4e601989..f585eb387d 100644 --- a/common/unzip.cpp +++ b/common/unzip.cpp @@ -485,13 +485,13 @@ static uLong unzlocal_SearchCentralDir(Common::SeekableReadStream &fin) { uBackRead = 4; while (uBackRead<uMaxBack) { - uLong uReadSize,uReadPos ; + uLong uReadSize,uReadPos; int i; if (uBackRead+BUFREADCOMMENT>uMaxBack) uBackRead = uMaxBack; else uBackRead+=BUFREADCOMMENT; - uReadPos = uSizeFile-uBackRead ; + uReadPos = uSizeFile-uBackRead; uReadSize = ((BUFREADCOMMENT+4) < (uSizeFile-uReadPos)) ? (BUFREADCOMMENT+4) : (uSizeFile-uReadPos); @@ -670,13 +670,13 @@ int unzGetGlobalInfo(unzFile file, unz_global_info *pglobal_info) { static void unzlocal_DosDateToTmuDate(uLong ulDosDate, tm_unz* ptm) { uLong uDate; uDate = (uLong)(ulDosDate>>16); - ptm->tm_mday = (uInt)(uDate&0x1f) ; - ptm->tm_mon = (uInt)((((uDate)&0x1E0)/0x20)-1) ; - ptm->tm_year = (uInt)(((uDate&0x0FE00)/0x0200)+1980) ; + ptm->tm_mday = (uInt)(uDate&0x1f); + ptm->tm_mon = (uInt)((((uDate)&0x1E0)/0x20)-1); + ptm->tm_year = (uInt)(((uDate&0x0FE00)/0x0200)+1980); ptm->tm_hour = (uInt) ((ulDosDate &0xF800)/0x800); - ptm->tm_min = (uInt) ((ulDosDate&0x7E0)/0x20) ; - ptm->tm_sec = (uInt) (2*(ulDosDate&0x1f)) ; + ptm->tm_min = (uInt) ((ulDosDate&0x7E0)/0x20); + ptm->tm_sec = (uInt) (2*(ulDosDate&0x1f)); } /* @@ -772,7 +772,7 @@ static int unzlocal_GetCurrentFileInfoInternal(unzFile file, lSeek+=file_info.size_filename; if ((err==UNZ_OK) && (szFileName!=NULL)) { - uLong uSizeRead ; + uLong uSizeRead; if (file_info.size_filename<fileNameBufferSize) { *(szFileName+file_info.size_filename)='\0'; uSizeRead = file_info.size_filename; @@ -787,7 +787,7 @@ static int unzlocal_GetCurrentFileInfoInternal(unzFile file, if ((err==UNZ_OK) && (extraField!=NULL)) { - uLong uSizeRead ; + uLong uSizeRead; if (file_info.size_file_extra<extraFieldBufferSize) uSizeRead = file_info.size_file_extra; else @@ -810,7 +810,7 @@ static int unzlocal_GetCurrentFileInfoInternal(unzFile file, if ((err==UNZ_OK) && (szComment!=NULL)) { - uLong uSizeRead ; + uLong uSizeRead; if (file_info.size_file_comment<commentBufferSize) { *(szComment+file_info.size_file_comment)='\0'; uSizeRead = file_info.size_file_comment; @@ -897,7 +897,7 @@ int unzGoToNextFile(unzFile file) { return UNZ_END_OF_LIST_OF_FILE; s->pos_in_central_dir += SIZECENTRALDIRITEM + s->cur_file_info.size_filename + - s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment ; + s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment; s->num_file++; err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info, &s->cur_file_info_internal, @@ -1185,11 +1185,11 @@ int unzReadCurrentFile(unzFile file, voidp buf, unsigned len) { } if (pfile_in_zip_read_info->compression_method==0) { - uInt uDoCopy,i ; + uInt uDoCopy,i; if (pfile_in_zip_read_info->stream.avail_out < pfile_in_zip_read_info->stream.avail_in) - uDoCopy = pfile_in_zip_read_info->stream.avail_out ; + uDoCopy = pfile_in_zip_read_info->stream.avail_out; else - uDoCopy = pfile_in_zip_read_info->stream.avail_in ; + uDoCopy = pfile_in_zip_read_info->stream.avail_in; for (i=0;i<uDoCopy;i++) *(pfile_in_zip_read_info->stream.next_out+i) = *(pfile_in_zip_read_info->stream.next_in+i); @@ -1327,7 +1327,7 @@ int unzGetLocalExtrafield(unzFile file, voidp buf, unsigned len) { if (len>size_to_read) read_now = (uInt)size_to_read; else - read_now = (uInt)len ; + read_now = (uInt)len; if (read_now==0) return 0; @@ -1392,7 +1392,7 @@ int unzCloseCurrentFile(unzFile file) { */ int unzGetGlobalComment(unzFile file, char *szComment, uLong uSizeBuf) { unz_s* s; - uLong uReadThis ; + uLong uReadThis; if (file==NULL) return UNZ_PARAMERROR; s=(unz_s*)file; diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 2cebc3e3c6..d8f2ab492d 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -152,7 +152,7 @@ void Scripts::searchForSequence() { _data->seek(0); int sequenceId; do { - while (_data->readByte() != SCRIPT_START_BYTE) ; + while (_data->readByte() != SCRIPT_START_BYTE); sequenceId = _data->readUint16LE(); } while (sequenceId != _sequence); } diff --git a/engines/bladerunner/audio_speech.cpp b/engines/bladerunner/audio_speech.cpp index 87f73737d4..5ffde9db6c 100644 --- a/engines/bladerunner/audio_speech.cpp +++ b/engines/bladerunner/audio_speech.cpp @@ -110,7 +110,7 @@ void AudioSpeech::stopSpeech() { bool AudioSpeech::isPlaying() const { if (_channel == -1) { - return false; + return false; } return _isActive; } diff --git a/engines/bladerunner/screen_effects.h b/engines/bladerunner/screen_effects.h index ad0fb5090f..d16f1cf284 100644 --- a/engines/bladerunner/screen_effects.h +++ b/engines/bladerunner/screen_effects.h @@ -39,12 +39,12 @@ class ScreenEffects { public: struct Entry { Color256 palette[16]; - uint16 x; - uint16 y; - uint16 width; - uint16 height; - uint16 z; - uint8 *data; + uint16 x; + uint16 y; + uint16 width; + uint16 height; + uint16 z; + uint8 *data; }; BladeRunnerEngine *_vm; @@ -58,7 +58,7 @@ public: ~ScreenEffects(); void readVqa(Common::SeekableReadStream *stream); - void getColor(Color256 *outColor, uint16 x, uint16 y, uint16 z) const ; + void getColor(Color256 *outColor, uint16 x, uint16 y, uint16 z) const; //TODO //bool isAffectingArea(int x, int y, int width, int height, int unk); diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index 4d3a103663..a7e065fe01 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -707,7 +707,7 @@ uint8 Vga::closest(Dac *pal, const uint8 colR, const uint8 colG, const uint8 col uint16 D = ((r > R) ? (r - R) : (R - r)) + ((g > G) ? (g - G) : (G - g)) + ((b > B) ? (b - B) : (B - b)) + - ((l > L) ? (l - L) : (L - l)) * 10 ; + ((l > L) ? (l - L) : (L - l)) * 10; if (D < dif) { found = i; diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp index 8b0d8b6c77..8b8acb6ade 100644 --- a/engines/cge2/vga13h.cpp +++ b/engines/cge2/vga13h.cpp @@ -938,13 +938,13 @@ uint8 Vga::closest(Dac *pal, const uint8 colR, const uint8 colG, const uint8 col uint16 D = ((r > R) ? (r - R) : (R - r)) + ((g > G) ? (g - G) : (G - g)) + ((b > B) ? (b - B) : (B - b)) + - ((l > L) ? (l - L) : (L - l)) * 10 ; + ((l > L) ? (l - L) : (L - l)) * 10; if (D < dif) { found = i; dif = D; if (D == 0) - break; // exact! + break; // exact! } } return found; diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp index 103d9fde9e..220b4bbb41 100644 --- a/engines/cryo/eden.cpp +++ b/engines/cryo/eden.cpp @@ -2321,7 +2321,7 @@ void EdenGame::my_bulle() { } else if (c >= 0x80 && c < 0x90) SysBeep(1); else if (c >= 0x90 && c < 0xA0) { - while (*textPtr++ != 0xFF) ; + while (*textPtr++ != 0xFF); textPtr--; } else if (c >= 0xA0 && c < 0xC0) _globals->_textToken1 = c & 0xF; @@ -2333,7 +2333,7 @@ void EdenGame::my_bulle() { #ifdef FAKE_DOS_VERSION _globals->_textWidthLimit = c1 + 160; #else - _globals->_textWidthLimit = c1 + _subtitlesXCenter; //TODO: signed? 160 in pc ver + _globals->_textWidthLimit = c1 + _subtitlesXCenter; // TODO: signed? 160 in pc ver #endif else { byte c2 = *textPtr++; diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp index cf8710c64d..9b0015e646 100644 --- a/engines/gnap/gnap.cpp +++ b/engines/gnap/gnap.cpp @@ -979,7 +979,7 @@ int GnapEngine::playSoundC() { if (!_timers[_soundTimerIndexC]) { _timers[_soundTimerIndexC] = getRandom(50) + 150; - soundId = kSoundIdsC[getRandom(7)] ; + soundId = kSoundIdsC[getRandom(7)]; playSound(soundId | 0x10000, false); } return soundId; diff --git a/engines/kyra/eobcommon.h b/engines/kyra/eobcommon.h index 1401d59dae..d214da0944 100644 --- a/engines/kyra/eobcommon.h +++ b/engines/kyra/eobcommon.h @@ -885,7 +885,7 @@ protected: void inflictMonsterDamage(EoBMonsterInPlay *m, int damage, bool giveExperience); void calcAndInflictMonsterDamage(EoBMonsterInPlay *m, int times, int pips, int offs, int flags, int savingThrowType, int savingThrowEffect); void calcAndInflictCharacterDamage(int charIndex, int times, int itemOrPips, int useStrModifierOrBase, int flags, int savingThrowType, int savingThrowEffect); - int calcCharacterDamage(int charIndex, int times, int itemOrPips, int useStrModifierOrBase, int flags, int savingThrowType, int damageType) ; + int calcCharacterDamage(int charIndex, int times, int itemOrPips, int useStrModifierOrBase, int flags, int savingThrowType, int damageType); void inflictCharacterDamage(int charIndex, int damage); bool characterAttackHitTest(int charIndex, int monsterIndex, int item, int attackType); diff --git a/engines/kyra/screen_eob.cpp b/engines/kyra/screen_eob.cpp index 6c1bd572e1..3a9a647fa5 100644 --- a/engines/kyra/screen_eob.cpp +++ b/engines/kyra/screen_eob.cpp @@ -499,7 +499,7 @@ void Screen_EoB::drawShape(uint8 pageNum, const uint8 *shapeData, int x, int y, int16 dX = x - (_dsX1 << 3); int16 dY = y; int16 dW = _dsX2 - _dsX1; - uint8 pixelsPerByte = *src++ ; + uint8 pixelsPerByte = *src++; uint16 dH = *src++; uint16 width = (*src++) << 3; @@ -1211,7 +1211,7 @@ void Screen_EoB::createFadeTable(uint8 *palData, uint8 *dst, uint8 rootColor, ui if (t <= v && (ii == rootColor || ii != i)) { v = t; - col = ii ; + col = ii; } } *dst++ = col; diff --git a/engines/kyra/sequences_darkmoon.cpp b/engines/kyra/sequences_darkmoon.cpp index 53a30d0079..68d6f752e0 100644 --- a/engines/kyra/sequences_darkmoon.cpp +++ b/engines/kyra/sequences_darkmoon.cpp @@ -876,7 +876,7 @@ void DarkMoonEngine::seq_playCredits(DarkmoonSequenceHelper *sq, const uint8 *da const uint8 *shp = sq->_shapes[(*++posOld) - 1]; items[i + 1].data = shp; items[i + 1].size = shp[1]; - items[i + 1].x = (dm->w - shp[2]) << 2 ; + items[i + 1].x = (dm->w - shp[2]) << 2; items[i + 1].dataType = 1; delete[] items[i + 1].str; items[i + 1].str = 0; diff --git a/engines/kyra/sequences_hof.cpp b/engines/kyra/sequences_hof.cpp index 942cf16502..7ee1ad7e4b 100644 --- a/engines/kyra/sequences_hof.cpp +++ b/engines/kyra/sequences_hof.cpp @@ -3378,7 +3378,7 @@ void KyraEngine_HoF::seq_showStarcraftLogo() { int KyraEngine_HoF::seq_playIntro() { bool startupSaveLoadable = saveFileLoadable(0); - return SeqPlayer_HOF(this, _screen, _system, startupSaveLoadable).play(kSequenceVirgin, startupSaveLoadable? kSequenceTitle : kSequenceNoLooping); + return SeqPlayer_HOF(this, _screen, _system, startupSaveLoadable).play(kSequenceVirgin, startupSaveLoadable ? kSequenceTitle : kSequenceNoLooping); } int KyraEngine_HoF::seq_playOutro() { diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index 5377806c71..07911f945f 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1222,7 +1222,7 @@ void LilliputScript::listAllTexts() { int index = _vm->_packedStringIndex[i]; int variantCount = 0; while (_vm->_packedStrings[index + variantCount] == 0x5B) - ++variantCount ; + ++variantCount; /* int it = 0; if (variantCount != 0) { diff --git a/engines/mads/nebular/nebular_scenes4.cpp b/engines/mads/nebular/nebular_scenes4.cpp index a4c6a3ebe1..8b7eb1a9ec 100644 --- a/engines/mads/nebular/nebular_scenes4.cpp +++ b/engines/mads/nebular/nebular_scenes4.cpp @@ -2443,7 +2443,7 @@ void Scene405::step() { } if (_game._trigger == 70) { - _game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount ; + _game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount; _game._player._visible = true; _globals._sequenceIndexes[1] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[1], false, 6, 1, 0, 0); _scene->_sequences.addSubEntry(_globals._sequenceIndexes[1], SEQUENCE_TRIGGER_EXPIRE, 0, 71); @@ -2458,7 +2458,7 @@ void Scene405::step() { } if (_game._trigger == 75) { - _game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount ; + _game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount; _game._player._visible = true; _scene->_sequences.remove(_globals._sequenceIndexes[1]); _globals._sequenceIndexes[1] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[1], false, 6, 1, 0, 0); diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index e6b196c4cd..250d2914b7 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -2804,8 +2804,8 @@ void Interface::mapPanelDrawCrossHair() { if (screen.contains(mapPosition)) { _vm->_sprite->draw(_vm->_sprite->_mainSprites, - _mapPanelCrossHairState? RID_ITE_SPR_CROSSHAIR : RID_ITE_SPR_CROSSHAIR + 1, - mapPosition, 256); + _mapPanelCrossHairState ? RID_ITE_SPR_CROSSHAIR : RID_ITE_SPR_CROSSHAIR + 1, + mapPosition, 256); } } diff --git a/engines/scumm/he/moonbase/ai_main.cpp b/engines/scumm/he/moonbase/ai_main.cpp index c391105658..c5c1f6a8e4 100644 --- a/engines/scumm/he/moonbase/ai_main.cpp +++ b/engines/scumm/he/moonbase/ai_main.cpp @@ -2811,9 +2811,9 @@ int AI::simulateBuildingLaunch(int x, int y, int power, int angle, int numSteps, numSteps = 1; if (!sXSpeed && !sYSpeed) { - sZSpeed = (static_cast<int>(.70711 * power)) ; - sXSpeed = (static_cast<int>(cos(degToRad(angle)) * sZSpeed)) ; - sYSpeed = (static_cast<int>(sin(degToRad(angle)) * sZSpeed)) ; + sZSpeed = (static_cast<int>(.70711 * power)); + sXSpeed = (static_cast<int>(cos(degToRad(angle)) * sZSpeed)); + sYSpeed = (static_cast<int>(sin(degToRad(angle)) * sZSpeed)); sZSpeed *= SCALE_Z; @@ -2959,9 +2959,9 @@ int AI::simulateWeaponLaunch(int x, int y, int power, int angle, int numSteps) { if (!numSteps) numSteps = 1; if (!sXSpeed && !sYSpeed) { - sZSpeed = (static_cast<int>(.70711 * power)) ; - sXSpeed = (static_cast<int>(cos(degToRad(angle)) * sZSpeed)) ; - sYSpeed = (static_cast<int>(sin(degToRad(angle)) * sZSpeed)) ; + sZSpeed = (static_cast<int>(.70711 * power)); + sXSpeed = (static_cast<int>(cos(degToRad(angle)) * sZSpeed)); + sYSpeed = (static_cast<int>(sin(degToRad(angle)) * sZSpeed)); sZSpeed *= SCALE_Z; diff --git a/engines/sherlock/image_file.cpp b/engines/sherlock/image_file.cpp index c53e537bb8..112655648a 100644 --- a/engines/sherlock/image_file.cpp +++ b/engines/sherlock/image_file.cpp @@ -703,7 +703,7 @@ void ImageFile3DO::load3DOCelRoomData(Common::SeekableReadStream &stream) { error("load3DOCelRoomData: expected cel data, not enough bytes"); // read data into memory - byte *celDataPtr = new byte[celDataSize]; + byte *celDataPtr = new byte[celDataSize]; stream.read(celDataPtr, celDataSize); streamLeft -= celDataSize; @@ -936,15 +936,15 @@ void ImageFile3DO::loadFont(Common::SeekableReadStream &stream) { stream.read(bitsTablePtr, bitsTableSize); // Now extract all characters - uint16 curChar = 0; - const byte *curBitsLinePtr = bitsTablePtr; - const byte *curBitsPtr = NULL; - byte curBitsLeft = 0; - uint32 curCharHeightLeft = 0; - uint32 curCharWidthLeft = 0; - byte curBits = 0; - byte curBitsReversed = 0; - byte curPosX = 0; + uint16 curChar = 0; + const byte *curBitsLinePtr = bitsTablePtr; + const byte *curBitsPtr = NULL; + byte curBitsLeft = 0; + uint32 curCharHeightLeft = 0; + uint32 curCharWidthLeft = 0; + byte curBits = 0; + byte curBitsReversed = 0; + byte curPosX = 0; assert(bitsTableSize >= (header_maxChar * header_fontHeight * header_bytesPerLine)); // Security diff --git a/engines/sherlock/music.cpp b/engines/sherlock/music.cpp index cef7157034..20b811ea98 100644 --- a/engines/sherlock/music.cpp +++ b/engines/sherlock/music.cpp @@ -182,8 +182,8 @@ bool MidiParser_SH::loadMusic(byte *musData, uint32 musDataSize) { _musData = musData; _musDataSize = musDataSize; - byte *headerPtr = _musData + 12; // skip over the already checked SPACE header - byte *pos = headerPtr; + byte *headerPtr = _musData + 12; // skip over the already checked SPACE header + byte *pos = headerPtr; uint16 headerSize = READ_LE_UINT16(headerPtr); assert(headerSize == 0x7F); // Security check diff --git a/engines/sherlock/objects.h b/engines/sherlock/objects.h index 25ccddedbb..6f1148e956 100644 --- a/engines/sherlock/objects.h +++ b/engines/sherlock/objects.h @@ -470,7 +470,7 @@ struct SceneImage { int _filesize; // File size SceneImage(); -} ; +}; } // End of namespace Sherlock diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp index fc3c2e6574..458cc1a9c2 100644 --- a/engines/sherlock/tattoo/tattoo_people.cpp +++ b/engines/sherlock/tattoo/tattoo_people.cpp @@ -39,7 +39,7 @@ struct AdjustWalk { int _xAdjust; int _flipXAdjust; int _yAdjust; -} ; +}; static const AdjustWalk ADJUST_WALKS[NUM_ADJUSTED_WALKS] = { { "TUPRIGHT", -7, -19, 6 }, diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index 19aa937f64..8195fc53f9 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -195,7 +195,7 @@ builtIn(howFrozen) { builtIn(setCursor) { UNUSEDALL - PersonaAnimation *aa = getAnimationFromVar(fun->stack->thisVar); + PersonaAnimation *aa = getAnimationFromVar(fun->stack->thisVar); g_sludge->_cursorMan->pickAnimCursor(aa); trimStack(fun->stack); return BR_CONTINUE; @@ -400,7 +400,7 @@ builtIn(pasteImage) { if (!getValueType(x, SVT_INT, fun->stack->thisVar)) return BR_ERROR; trimStack(fun->stack); - PersonaAnimation *pp = getAnimationFromVar(fun->stack->thisVar); + PersonaAnimation *pp = getAnimationFromVar(fun->stack->thisVar); trimStack(fun->stack); if (pp == NULL) return BR_CONTINUE; @@ -1581,7 +1581,7 @@ builtIn(pasteCharacter) { builtIn(animate) { UNUSEDALL int obj; - PersonaAnimation *pp = getAnimationFromVar(fun->stack->thisVar); + PersonaAnimation *pp = getAnimationFromVar(fun->stack->thisVar); if (pp == NULL) return BR_ERROR; trimStack(fun->stack); diff --git a/engines/sludge/event.h b/engines/sludge/event.h index 015e9ea1cb..c07f7b87ad 100644 --- a/engines/sludge/event.h +++ b/engines/sludge/event.h @@ -69,7 +69,7 @@ public: int &mouseY() { return _input.mouseY; } // Events - void setEventFunction(EventFunctions event, int funcNum) { _currentEvents->func[event] = funcNum; } ; + void setEventFunction(EventFunctions event, int funcNum) { _currentEvents->func[event] = funcNum; }; void loadHandlers(Common::SeekableReadStream *stream); void saveHandlers(Common::WriteStream *stream); bool freeze(FrozenStuffStruct *frozenStuff); diff --git a/engines/sludge/freeze.cpp b/engines/sludge/freeze.cpp index cbafa40bdc..9f8c85e828 100644 --- a/engines/sludge/freeze.cpp +++ b/engines/sludge/freeze.cpp @@ -85,7 +85,7 @@ bool GraphicsManager::freeze() { _vm->_peopleMan->freeze(newFreezer); - StatusStuff *newStatusStuff = new StatusStuff ; + StatusStuff *newStatusStuff = new StatusStuff; if (!checkNew(newStatusStuff)) return false; newFreezer->frozenStatus = copyStatusBarStuff(newStatusStuff); diff --git a/engines/sludge/freeze.h b/engines/sludge/freeze.h index 647ccc9fc8..6dd77db17e 100644 --- a/engines/sludge/freeze.h +++ b/engines/sludge/freeze.h @@ -30,7 +30,7 @@ struct OnScreenPerson; struct PersonaAnimation; struct ScreenRegion; struct SpeechStruct; -struct StatusStuff ; +struct StatusStuff; struct EventHandlers; struct ScreenRegion; diff --git a/engines/sludge/loadsave.cpp b/engines/sludge/loadsave.cpp index 9d0a0088b5..017be432ab 100644 --- a/engines/sludge/loadsave.cpp +++ b/engines/sludge/loadsave.cpp @@ -257,7 +257,7 @@ bool loadVariable(Variable *to, Common::SeekableReadStream *stream) { return true; case SVT_ANIM: - to->varData.animHandler = new PersonaAnimation ; + to->varData.animHandler = new PersonaAnimation; if (!checkNew(to->varData.animHandler)) return false; to->varData.animHandler->load(stream); diff --git a/engines/sludge/people.cpp b/engines/sludge/people.cpp index 7a70e62457..625f5b7bcb 100644 --- a/engines/sludge/people.cpp +++ b/engines/sludge/people.cpp @@ -175,7 +175,7 @@ bool Persona::load(Common::SeekableReadStream *stream) { if (!checkNew(animation)) return false; for (a = 0; a < numDirections * 3; a++) { - animation[a] = new PersonaAnimation ; + animation[a] = new PersonaAnimation; if (!checkNew(animation[a])) return false; @@ -1088,7 +1088,7 @@ bool PeopleManager::loadPeople(Common::SeekableReadStream *stream) { if (!checkNew(me->myPersona)) return false; - me->myAnim = new PersonaAnimation ; + me->myAnim = new PersonaAnimation; if (!checkNew(me->myAnim)) return false; diff --git a/engines/sludge/statusba.cpp b/engines/sludge/statusba.cpp index 04fa18e957..fc0f065ea9 100644 --- a/engines/sludge/statusba.cpp +++ b/engines/sludge/statusba.cpp @@ -37,8 +37,8 @@ namespace Sludge { SpritePalette verbLinePalette; SpritePalette litVerbLinePalette; -StatusStuff mainStatus; -StatusStuff *nowStatus = & mainStatus; +StatusStuff mainStatus; +StatusStuff *nowStatus = & mainStatus; void setLitStatus(int i) { nowStatus->litStatus = i; @@ -144,7 +144,7 @@ StatusStuff *copyStatusBarStuff(StatusStuff *here) { here->litStatus = -1; here->firstStatusBar = NULL; - StatusStuff *old = nowStatus; + StatusStuff *old = nowStatus; nowStatus = here; return old; diff --git a/engines/supernova/screen.cpp b/engines/supernova/screen.cpp index 5404b13254..2c441acf7b 100644 --- a/engines/supernova/screen.cpp +++ b/engines/supernova/screen.cpp @@ -339,9 +339,9 @@ void Screen::renderImageSection(const MSNImage *image, int section) { return; Common::Rect sectionRect(image->_section[section].x1, - image->_section[section].y1, - image->_section[section].x2 + 1, - image->_section[section].y2 + 1) ; + image->_section[section].y1, + image->_section[section].x2 + 1, + image->_section[section].y2 + 1); if (image->_filenumber == 1 || image->_filenumber == 2) { sectionRect.setWidth(640); sectionRect.setHeight(480); diff --git a/engines/tony/loc.cpp b/engines/tony/loc.cpp index be2b20294f..fe553b5fab 100644 --- a/engines/tony/loc.cpp +++ b/engines/tony/loc.cpp @@ -1005,7 +1005,7 @@ void RMCharacter::goTo(CORO_PARAM, RMPoint destcoord, bool bReversed) { _walkCount = 0; if (bReversed) { - while (0) ; + while (0); } int nPatt = getCurPattern(); diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp index 1b4e30665c..9e55b99ca1 100644 --- a/engines/voyeur/files_threads.cpp +++ b/engines/voyeur/files_threads.cpp @@ -864,7 +864,7 @@ const byte *ThreadResource::cardPerform(const byte *card) { if (cardPerform2(card, id)) { card += subId; card = cardPerform(card); - while (*card++ != 61) ; + while (*card++ != 61); } else { card += subId; while (*card != 61 && *card != 29) diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.h b/engines/wintermute/base/gfx/osystem/base_render_osystem.h index bc267fd656..47099046e9 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.h +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.h @@ -96,7 +96,7 @@ public: bool setViewport(Rect32 *rect) override { return BaseRenderer::setViewport(rect); } Rect32 getViewPort() override; void modTargetRect(Common::Rect *rect); - void pointFromScreen(Point32 *point) ; + void pointFromScreen(Point32 *point); void pointToScreen(Point32 *point); void dumpData(const char *filename) override; diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp index 73dc6309b2..e92a09f8c9 100644 --- a/graphics/VectorRenderer.cpp +++ b/graphics/VectorRenderer.cpp @@ -143,7 +143,7 @@ void VectorRenderer::stepGetPositions(const DrawStep &step, const Common::Rect & break; case Graphics::DrawStep::kVectorAlignCenter: - in_y = area.top + (area.height() / 2) - (in_h / 2) + ((step.padding.top + step.padding.bottom ) / 2) ; + in_y = area.top + (area.height() / 2) - (in_h / 2) + ((step.padding.top + step.padding.bottom ) / 2); break; case Graphics::DrawStep::kVectorAlignTop: diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index fbf75b48ee..6fca2c11c8 100644 --- a/video/bink_decoder.cpp +++ b/video/bink_decoder.cpp @@ -559,7 +559,7 @@ void BinkDecoder::BinkVideoTrack::mergeHuffmanSymbols(VideoFrame &video, byte *d } void BinkDecoder::BinkVideoTrack::initBundles() { - uint32 bw = (_surface.w + 7) >> 3; + uint32 bw = (_surface.w + 7) >> 3; uint32 bh = (_surface.h + 7) >> 3; uint32 blocks = bw * bh; |