aboutsummaryrefslogtreecommitdiff
path: root/engines/touche
diff options
context:
space:
mode:
authorMax Horn2007-09-18 20:16:33 +0000
committerMax Horn2007-09-18 20:16:33 +0000
commit3abc11611e1d1d93f1cf794df28879de3571bd01 (patch)
treee1ac8a925d1388f8df010a114d7bed471fc9fe3b /engines/touche
parentc3d3aebe87d16d4fc3b7ac8581b99fb97241c9ac (diff)
downloadscummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.gz
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.bz2
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.zip
Code formatting fixes
svn-id: r28945
Diffstat (limited to 'engines/touche')
-rw-r--r--engines/touche/touche.cpp2
-rw-r--r--engines/touche/ui.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index f3d1f33dfd..c276cebbe8 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -2358,7 +2358,7 @@ void ToucheEngine::removeConversationChoice(int16 num) {
for (int i = 0; i < NUM_CONVERSATION_CHOICES; ++i) {
if (_conversationChoicesTable[i].num == num) {
_conversationChoicesUpdated = true;
- for(; i < NUM_CONVERSATION_CHOICES - 1; ++i) {
+ for (; i < NUM_CONVERSATION_CHOICES - 1; ++i) {
_conversationChoicesTable[i].num = _conversationChoicesTable[i + 1].num;
_conversationChoicesTable[i].msg = _conversationChoicesTable[i + 1].msg;
}
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp
index 4d7100d4d0..62fcf9d4ee 100644
--- a/engines/touche/ui.cpp
+++ b/engines/touche/ui.cpp
@@ -381,19 +381,19 @@ void ToucheEngine::handleOptions(int forceDisplay) {
memset(menuData.saveLoadMarks, false, 100 * sizeof(bool)); //assume no savegames for this title
filenames = _saveFileMan->listSavefiles(gameStateFileName);
- 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 1 or 2 digits of the filename, since they correspond to the save slot
//This engine can save games either with one or two digits, hence the additional if statement
slot[0] = file->c_str()[file->size()-2];
slot[1] = file->c_str()[file->size()-1];
- if(!atoi(&slot[0])){
+ if (!atoi(&slot[0])){
slotNum = atoi(&slot[1]);
} else {
slotNum = atoi(slot);
}
- if(slotNum >= 0 && slotNum < 100)
+ if (slotNum >= 0 && slotNum < 100)
menuData.saveLoadMarks[slotNum] = true; //mark this slot as valid
}