diff options
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/cycle.cpp | 2 | ||||
-rw-r--r-- | engines/agi/detection.cpp | 4 | ||||
-rw-r--r-- | engines/agi/preagi_mickey.cpp | 16 | ||||
-rw-r--r-- | engines/agi/preagi_troll.cpp | 2 | ||||
-rw-r--r-- | engines/agi/preagi_winnie.cpp | 4 | ||||
-rw-r--r-- | engines/agi/sound.cpp | 6 | ||||
-rw-r--r-- | engines/agi/text.cpp | 4 |
7 files changed, 19 insertions, 19 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp index cf987e66dc..f3828e00d2 100644 --- a/engines/agi/cycle.cpp +++ b/engines/agi/cycle.cpp @@ -347,7 +347,7 @@ int AgiEngine::playGame() { } interpretCycle(); - + // Check if the user has asked to load a game from the command line // or the launcher if (firstLoop) { diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index b99c24043a..86422a7d01 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -195,7 +195,7 @@ static const AGIGameDescription gameDescriptions[] = { // Black Cauldron (PC 5.25") 2.10 11/10/88 [AGI 3.002.098] GAME3("bc", "2.10 1988-11-10 5.25\"", "bcdir", "0c5a9acbcc7e51127c34818e75806df6", 0x3149, GID_BC), - + // Black Cauldron (PC) 2.10 [AGI 3.002.097] GAME3("bc", "2.10", "bcdir", "0de3953c9225009dc91e5b0d1692967b", 0x3149, GID_BC), @@ -524,7 +524,7 @@ static const AGIGameDescription gameDescriptions[] = { // Troll's Tale GAMEpre_PS("troll", "", "troll.img", "62903f264b3d849be4214b3a5c42a2fa", 184320, 0x0000, GID_TROLL, Common::kPlatformPC), - + // Winnie the Pooh in the Hundred Acre Wood GAMEpre_P("winnie", "", "title.pic", "2e7900c1ccaa7671d65405f6d1efed30", 0x0000, GID_WINNIE, Common::kPlatformPC), diff --git a/engines/agi/preagi_mickey.cpp b/engines/agi/preagi_mickey.cpp index ca8b47aded..155fe1ad06 100644 --- a/engines/agi/preagi_mickey.cpp +++ b/engines/agi/preagi_mickey.cpp @@ -115,7 +115,7 @@ bool Mickey::chooseY_N(int ofsPrompt, bool fErrorMsg) { break; } } - + return false; } @@ -509,7 +509,7 @@ bool Mickey::getMenuSelRow(MSA_MENU menu, int *sel0, int *sel1, int iRow) { animate(); drawMenu(menu, *sel0, *sel1); } - + return false; } @@ -535,7 +535,7 @@ void Mickey::getMenuSel(char *buffer, int *sel0, int *sel1) { } } } - + if (_clickToMove || getMenuSelRow(menu, sel0, sel1, 2)) { break; } @@ -1358,11 +1358,11 @@ void Mickey::intro() { // show copyright and play theme printExeMsg(IDO_MSA_COPYRIGHT); - + // Quit if necessary if (_vm->shouldQuit()) return; - + playSound(IDI_MSA_SND_THEME); // load game @@ -1375,7 +1375,7 @@ void Mickey::intro() { return; } } - + // Quit if necessary if (_vm->shouldQuit()) return; @@ -1386,7 +1386,7 @@ void Mickey::intro() { drawRoom(); printRoomDesc(); - + // Quit if necessary if (_vm->shouldQuit()) return; @@ -2104,7 +2104,7 @@ void Mickey::waitAnyKey(bool anim) { break; } } - + if (anim) { animate(); _vm->_gfx->doUpdate(); diff --git a/engines/agi/preagi_troll.cpp b/engines/agi/preagi_troll.cpp index f6d3fffd24..b72a617948 100644 --- a/engines/agi/preagi_troll.cpp +++ b/engines/agi/preagi_troll.cpp @@ -565,7 +565,7 @@ void Troll::gameLoop() { memset(_roomStates, 0, sizeof(_roomStates)); memset(_inventory, 0, sizeof(_inventory)); - + while (!done && !_vm->shouldQuit()) { *menu = 0; diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp index 81305e9590..1341adcef8 100644 --- a/engines/agi/preagi_winnie.cpp +++ b/engines/agi/preagi_winnie.cpp @@ -446,7 +446,7 @@ int Winnie::parser(int pc, int index, uint8 *buffer) { _vm->_gfx->doUpdate(); _vm->_system->updateScreen(); } - + return IDI_WTP_PAR_OK; } @@ -1016,7 +1016,7 @@ phase2: if (parser(hdr.ofsDesc[iBlock] - _roomOffset, iBlock, roomdata) == IDI_WTP_PAR_BACK) goto phase1; } - + while (!_vm->shouldQuit()) { for (iBlock = 0; iBlock < IDI_WTP_MAX_BLOCK; iBlock++) { switch(parser(hdr.ofsBlock[iBlock] - _roomOffset, iBlock, roomdata)) { diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index 403709ddde..73d64eee4d 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -46,11 +46,11 @@ AgiSound *AgiSound::createFromRawResource(uint8 *data, uint32 len, int resnum, S uint16 type = READ_LE_UINT16(data); switch (type) { // Create a sound object based on the type - case AGI_SOUND_SAMPLE: + case AGI_SOUND_SAMPLE: return new IIgsSample(data, len, resnum, manager); - case AGI_SOUND_MIDI: + case AGI_SOUND_MIDI: return new IIgsMidi (data, len, resnum, manager); - case AGI_SOUND_4CHN: + case AGI_SOUND_4CHN: return new PCjrSound (data, len, resnum, manager); } diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp index da7f34fc19..63b109ee83 100644 --- a/engines/agi/text.cpp +++ b/engines/agi/text.cpp @@ -272,9 +272,9 @@ char *AgiEngine::wordWrapString(const char *s, int *len) { if (wLen) { memcpy(outStr, pWord, wLen); outStr += wLen; - } + } lnLen += wLen+1; - + if (lnLen > msgWidth) { msgWidth = lnLen; |