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 | |
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')
-rw-r--r-- | engines/titanic/core/project_item.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/detection.cpp | 2 |
2 files changed, 1 insertions, 4 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) { diff --git a/engines/titanic/detection.cpp b/engines/titanic/detection.cpp index 8c990e2525..6c3177d718 100644 --- a/engines/titanic/detection.cpp +++ b/engines/titanic/detection.cpp @@ -33,8 +33,6 @@ #include "graphics/colormasks.h" #include "graphics/surface.h" -#define MAX_SAVES 99 - namespace Titanic { struct TitanicGameDescription { |