aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorEugene Sandulenko2009-01-01 15:06:43 +0000
committerEugene Sandulenko2009-01-01 15:06:43 +0000
commit696897b0583ad52ebc6f7666525277847619a8ce (patch)
tree5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /engines/sword1
parent05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff)
downloadscummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz
scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2
scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/control.cpp10
-rw-r--r--engines/sword1/detection.cpp10
2 files changed, 10 insertions, 10 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index f4a4307501..eb61ffe4b3 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -729,7 +729,7 @@ void Control::readSavegameDescriptions(void) {
for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
// Obtain the last 3 digits of the filename, since they correspond to the save slot
slotNum = atoi(file->c_str() + file->size() - 3);
-
+
while (num < slotNum) {
_saveNames.push_back("");
num++;
@@ -818,7 +818,7 @@ void Control::checkForOldSaveGames() {
slot++;
} while ((ch != 255) && (!inf->eos()));
- delete inf;
+ delete inf;
// Delete index file
_saveFileMan->removeSavefile("SAVEGAME.INF");
@@ -1050,7 +1050,7 @@ bool Control::restoreGameFromFile(uint8 slot) {
if (saveHeader != SAVEGAME_HEADER) {
// Display an error message, and do nothing
displayMessage(0, "Save game '%s' is corrupt", fName);
- return false;
+ return false;
}
inf->skip(40); // skip description
@@ -1060,7 +1060,7 @@ bool Control::restoreGameFromFile(uint8 slot) {
warning("Different save game version");
return false;
}
-
+
bool hasThumbnail = inf->readByte();
if (hasThumbnail) {
@@ -1156,7 +1156,7 @@ bool Control::convertSaveGame(uint8 slot, char* desc) {
free(saveData);
saveData = NULL;
return false;
- }
+ }
newSave->writeUint32LE(SAVEGAME_HEADER);
newSave->write(desc, 40);
diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp
index 657364cc11..b478199f86 100644
--- a/engines/sword1/detection.cpp
+++ b/engines/sword1/detection.cpp
@@ -203,7 +203,7 @@ SaveStateList SwordMetaEngine::listSaves(const char *target) const {
for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
// Obtain the last 3 digits of the filename, since they correspond to the save slot
slotNum = atoi(file->c_str() + file->size() - 3);
-
+
if (slotNum >= 0 && slotNum <= 999) {
Common::InSaveFile *in = saveFileMan->openForLoading(file->c_str());
if (in) {
@@ -264,7 +264,7 @@ SaveStateDescriptor SwordMetaEngine::querySaveMetaInfos(const char *target, int
int year = saveDate & 0xFFFF;
desc.setSaveDate(year, month, day);
-
+
int hour = (saveTime >> 8) & 0xFF;
int minutes = saveTime & 0xFF;
@@ -276,7 +276,7 @@ SaveStateDescriptor SwordMetaEngine::querySaveMetaInfos(const char *target, int
return desc;
}
-
+
return SaveStateDescriptor();
}
@@ -305,11 +305,11 @@ Common::Error SwordEngine::saveGameState(int slot, const char *desc) {
return Common::kNoError; // TODO: return success/failure
}
-bool SwordEngine::canLoadGameStateCurrently() {
+bool SwordEngine::canLoadGameStateCurrently() {
return mouseIsActive();
}
-bool SwordEngine::canSaveGameStateCurrently() {
+bool SwordEngine::canSaveGameStateCurrently() {
return mouseIsActive();
}
#endif