diff options
author | Eugene Sandulenko | 2005-08-04 10:48:54 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-08-04 10:48:54 +0000 |
commit | f63bbb10063913ddd0319689c49f1724fe9cf7ca (patch) | |
tree | 35659d3a8e070084fb2cc4c0920bd68b892a73f8 | |
parent | ef473bd613bf8a6841aab48a24448c6bf53cf1b5 (diff) | |
download | scummvm-rg350-f63bbb10063913ddd0319689c49f1724fe9cf7ca.tar.gz scummvm-rg350-f63bbb10063913ddd0319689c49f1724fe9cf7ca.tar.bz2 scummvm-rg350-f63bbb10063913ddd0319689c49f1724fe9cf7ca.zip |
Simulate bootparams.
svn-id: r18611
-rw-r--r-- | saga/resnames.h | 1 | ||||
-rw-r--r-- | saga/saga.cpp | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/saga/resnames.h b/saga/resnames.h index affb9d7ca4..809ff2917d 100644 --- a/saga/resnames.h +++ b/saga/resnames.h @@ -42,6 +42,7 @@ namespace Saga { //obj names #define ITE_OBJ_MAP 14 +#define ITE_MAGIC_HAT 0 //actor names #define ITE_ACTOR_PUZZLE 176 diff --git a/saga/saga.cpp b/saga/saga.cpp index 8c85f22830..eae240377b 100644 --- a/saga/saga.cpp +++ b/saga/saga.cpp @@ -298,9 +298,11 @@ int SagaEngine::go() { if (ConfMan.hasKey("start_scene")) { _scene->changeScene(ConfMan.getInt("start_scene"), 0, kTransitionNoFade); - } - else - if (ConfMan.hasKey("save_slot")) { + } else if (ConfMan.hasKey("boot_param")) { + if (getGameType() == GType_ITE) + _interface->addToInventory(_actor->objIndexToId(ITE_MAGIC_HAT)); + _scene->changeScene(ConfMan.getInt("boot_param"), 0, kTransitionNoFade); + } else if (ConfMan.hasKey("save_slot")) { // First scene sets up palette _scene->changeScene(getStartSceneNumber(), 0, kTransitionNoFade); _events->handleEvents(0); // Process immediate events |