diff options
author | Eric Fry | 2018-06-28 22:50:20 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 8e43261d13a81131e0be0bfc75627f7395f78a90 (patch) | |
tree | e6f2d38900233da689bb59d3ec293f14b510a4b6 /engines/illusions/detection.cpp | |
parent | fee1f3d8cb065182322bc80aba39a66a1b4b0cfb (diff) | |
download | scummvm-rg350-8e43261d13a81131e0be0bfc75627f7395f78a90.tar.gz scummvm-rg350-8e43261d13a81131e0be0bfc75627f7395f78a90.tar.bz2 scummvm-rg350-8e43261d13a81131e0be0bfc75627f7395f78a90.zip |
ILLUSIONS: Formatting fixes
Simplified some point arithmetic
Lock fixedpoint calcs to float rather than double
Diffstat (limited to 'engines/illusions/detection.cpp')
-rw-r--r-- | engines/illusions/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/illusions/detection.cpp b/engines/illusions/detection.cpp index 63aea79ba6..89fa429457 100644 --- a/engines/illusions/detection.cpp +++ b/engines/illusions/detection.cpp @@ -140,7 +140,6 @@ SaveStateList IllusionsMetaEngine::listSaves(const char *target) const { pattern += ".???"; Common::StringArray filenames; filenames = saveFileMan->listSavefiles(pattern.c_str()); - Common::sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { // Obtain the last 3 digits of the filename, since they correspond to the save slot @@ -155,6 +154,7 @@ SaveStateList IllusionsMetaEngine::listSaves(const char *target) const { } } } + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |