aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-06-22 19:09:43 +0200
committerThierry Crozat2018-01-22 23:40:38 +0000
commitbe5f3a631931a3ec7f07c5e2168064d98d48698f (patch)
treea4d412eef94b3ccb194e5ea98faeb1798bd51273
parent29021aa7dd2461e85de82799349de00d0c6e3994 (diff)
downloadscummvm-rg350-be5f3a631931a3ec7f07c5e2168064d98d48698f.tar.gz
scummvm-rg350-be5f3a631931a3ec7f07c5e2168064d98d48698f.tar.bz2
scummvm-rg350-be5f3a631931a3ec7f07c5e2168064d98d48698f.zip
SUPERNOVA: Fixes file name creation
-rw-r--r--engines/supernova/supernova.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index 6c29e57f39..c4911548c2 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -72,7 +72,7 @@ SupernovaEngine::SupernovaEngine(OSystem *syst)
, _console(NULL)
, _brightness(255)
, _menuBrightness(255)
- , _imageIndex(10)
+ , _imageIndex(0)
, _sectionIndex(0)
, _delay(33)
, _gameRunning(true)
@@ -218,7 +218,7 @@ void playSoundMod(int filenumber)
void SupernovaEngine::renderImage(int filenumber, int section, bool fullscreen) {
Common::File file;
- if (!file.open(Common::String::format("msn_data.0%2d", filenumber))) {
+ if (!file.open(Common::String::format("msn_data.%03d", filenumber))) {
error("File %s could not be read!", file.getName());
}