diff options
author | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
commit | 696897b0583ad52ebc6f7666525277847619a8ce (patch) | |
tree | 5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /engines/agi | |
parent | 05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff) | |
download | scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2 scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip |
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/detection.cpp | 14 | ||||
-rw-r--r-- | engines/agi/loader_v3.cpp | 2 | ||||
-rw-r--r-- | engines/agi/saveload.cpp | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index a9f49b64c6..5763f8e63b 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -2186,7 +2186,7 @@ SaveStateList AgiMetaEngine::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 int slotNum = atoi(file->c_str() + file->size() - 3); - + if (slotNum >= 0 && slotNum <= 999) { Common::InSaveFile *in = saveFileMan->openForLoading(file->c_str()); if (in) { @@ -2250,7 +2250,7 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl int year = saveDate & 0xFFFF; desc.setSaveDate(year, month, day); - + int hour = (saveTime >> 8) & 0xFF; int minutes = saveTime & 0xFF; @@ -2264,7 +2264,7 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl return desc; } - + return SaveStateDescriptor(); } @@ -2414,8 +2414,8 @@ const Common::ADGameDescription *AgiMetaEngine::fallbackDetect(const Common::FSL // Check if we found a match with any of the fallback methods if (matchedUsingWag || matchedUsingFilenames) { _extra = description + (!_extra.empty() ? " " : "") + _extra; // Let's combine the description and extra - - // Override the gameid & extra values in g_fallbackDesc.desc. This only works + + // Override the gameid & extra values in g_fallbackDesc.desc. This only works // until the fallback detector is called again, and while the MetaEngine instance // is alive (as else the string storage is modified/deleted). g_fallbackDesc.desc.gameid = _gameid.c_str(); @@ -2454,11 +2454,11 @@ Common::Error AgiBase::saveGameState(int slot, const char *desc) { return Common::kNoError; // TODO: return success/failure } -bool AgiBase::canLoadGameStateCurrently() { +bool AgiBase::canLoadGameStateCurrently() { return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork)); } -bool AgiBase::canSaveGameStateCurrently() { +bool AgiBase::canSaveGameStateCurrently() { return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork)); } diff --git a/engines/agi/loader_v3.cpp b/engines/agi/loader_v3.cpp index bea57069c0..e784dad323 100644 --- a/engines/agi/loader_v3.cpp +++ b/engines/agi/loader_v3.cpp @@ -230,7 +230,7 @@ uint8 *AgiLoader_v3::loadVolRes(AgiDir *agid) { debugC(3, kDebugLevelResources, "offset = %d", agid->offset); debugC(3, kDebugLevelResources, "x = %x %x", x[0], x[1]); error("ACK! BAD RESOURCE"); - + _vm->quitGame(); } diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index a551394697..a3c3f0a035 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -46,7 +46,7 @@ * Version 1 (Sarien): view table has 256 entries (needed in KQ3) * Version 2 (ScummVM): first ScummVM version * Version 3 (ScummVM): added AGIPAL save/load support - * Version 4 (ScummVM): added thumbnails and save creation date/time + * Version 4 (ScummVM): added thumbnails and save creation date/time */ namespace Agi { |