diff options
author | David Fioramonti | 2017-08-03 15:21:40 -0700 |
---|---|---|
committer | David Fioramonti | 2017-08-03 16:13:34 -0700 |
commit | 293df6a68f9e10f1fa43139306eaf73af7ab6c09 (patch) | |
tree | 09b496493ee703896c3acb6b92b0509e97ea083d /engines/titanic/core | |
parent | 79dbb566254eb7fa23c28b6b739bf8ca624bebf8 (diff) | |
download | scummvm-rg350-293df6a68f9e10f1fa43139306eaf73af7ab6c09.tar.gz scummvm-rg350-293df6a68f9e10f1fa43139306eaf73af7ab6c09.tar.bz2 scummvm-rg350-293df6a68f9e10f1fa43139306eaf73af7ab6c09.zip |
TITANIC: Max saved games const centralized
Before the const specifying the max number of save/load games was
in titanic.h, core/project_item.cpp, main_game_window, and detection.cpp.
Since they all inherit from titanic.h they should just use the const there.
Also the saved game const in core/project_item.cpp was named differently
so I also changed that.
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/project_item.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp index a3ac284af8..2655b6cbd5 100644 --- a/engines/titanic/core/project_item.cpp +++ b/engines/titanic/core/project_item.cpp @@ -35,7 +35,6 @@ namespace Titanic { #define CURRENT_SAVEGAME_VERSION 1 -#define MAX_SAVEGAME_SLOTS 99 #define MINIMUM_SAVEGAME_VERSION 1 static const char *const SAVEGAME_STR = "TNIC"; @@ -464,7 +463,7 @@ SaveStateList CProjectItem::getSavegameList(const Common::String &target) { const char *ext = strrchr(file->c_str(), '.'); int slot = ext ? atoi(ext + 1) : -1; - if (slot >= 0 && slot < MAX_SAVEGAME_SLOTS) { + if (slot >= 0 && slot < MAX_SAVES) { Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(*file); if (in) { |