ILLUSIONS: Formatting fixes

Simplified some point arithmetic
Lock fixedpoint calcs to float rather than double
This commit is contained in:
Eric Fry 2018-06-28 22:50:20 +10:00 committed by Eugene Sandulenko
parent fee1f3d8cb
commit 8e43261d13
12 changed files with 19 additions and 33 deletions

View file

@ -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;
}