From 3abc11611e1d1d93f1cf794df28879de3571bd01 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 18 Sep 2007 20:16:33 +0000 Subject: Code formatting fixes svn-id: r28945 --- engines/scumm/saveload.cpp | 4 ++-- engines/scumm/script_v5.cpp | 4 ++-- engines/scumm/verbs.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/scumm') diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index 0e485e226a..bc18af8426 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -397,13 +397,13 @@ void ScummEngine::listSavegames(bool *marks, int num) { memset(marks, false, num * sizeof(bool)); //assume no savegames for this title filenames = _saveFileMan->listSavefiles(prefix); - for(Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); file++){ + for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); file++){ //Obtain the last 2 digits of the filename, since they correspond to the save slot slot[0] = file->c_str()[file->size()-2]; slot[1] = file->c_str()[file->size()-1]; slotNum = atoi(slot); - if(slotNum >= 0 && slotNum < num) + if (slotNum >= 0 && slotNum < num) marks[slotNum] = true; //mark this slot as valid } } diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp index 3cd71bac08..ab870f3f94 100644 --- a/engines/scumm/script_v5.cpp +++ b/engines/scumm/script_v5.cpp @@ -947,7 +947,7 @@ void ScummEngine_v5::loadVars() { if (a == STRINGID_IQ_SERIES && b == STRINGID_IQ_SERIES) { // Zak256 loads the IQ script-slot but does not use it -> ignore it - if(_game.id == GID_INDY3) { + if (_game.id == GID_INDY3) { loadIQPoints(); } break; @@ -968,7 +968,7 @@ void ScummEngine_v5::loadVars() { if (!ptr[pos]) break; // replace special characters - if(ptr[pos] >= 32 && ptr[pos] <= 122 && ptr[pos] != 64) + if (ptr[pos] >= 32 && ptr[pos] <= 122 && ptr[pos] != 64) slotContent[pos] = ptr[pos]; else slotContent[pos] = '_'; diff --git a/engines/scumm/verbs.cpp b/engines/scumm/verbs.cpp index 3c5713d241..fe9c9824de 100644 --- a/engines/scumm/verbs.cpp +++ b/engines/scumm/verbs.cpp @@ -564,7 +564,7 @@ void ScummEngine::checkExecVerbs() { // like F5 (=0x8005) or joystick buttons (mask 0xFE00, e.g. SELECT=0xFE40 for the save/load menu). // Hence the distinction with (_mouseAndKeyboardStat < MBS_MAX_KEY) between mouse- and key-events is not applicable // to this games, so we have to remap the special keys here. - if(_mouseAndKeyboardStat == 319) { + if (_mouseAndKeyboardStat == 319) { _mouseAndKeyboardStat = 0x8005; } } -- cgit v1.2.3