diff options
author | Joost Peters | 2003-04-05 18:01:29 +0000 |
---|---|---|
committer | Joost Peters | 2003-04-05 18:01:29 +0000 |
commit | 1b4818662e1a882daaa9165f534267c39544bdab (patch) | |
tree | 3340e3c5ccb42782727eafdf26bd17d530053117 /sky/sky.cpp | |
parent | fb20404df0a91f77ee9226437d5312c6ea75b69e (diff) | |
download | scummvm-rg350-1b4818662e1a882daaa9165f534267c39544bdab.tar.gz scummvm-rg350-1b4818662e1a882daaa9165f534267c39544bdab.tar.bz2 scummvm-rg350-1b4818662e1a882daaa9165f534267c39544bdab.zip |
Added text decoders + various other bits of code
svn-id: r6913
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r-- | sky/sky.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 1890c74507..3c12425995 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -83,7 +83,7 @@ void SkyState::go() { _dump_file = stdout; initialise(); - if (!_isDemo) + if (!_isDemo || _isCDVersion) intro(); while (1) { @@ -100,10 +100,39 @@ void SkyState::initialise(void) { _sound = new SkySound(_mixer); initialiseDisk(); + setupVersionSpecifics(_gameVersion); //_gameVersion is initialised in initialiseDisk(); initialiseScreen(); initVirgin(); //initMouse(); + initItemList(); + //initScript(); initialiseGrids(); + //initialiseRouter(); + initialiseText(); +} + +void SkyState::initItemList() { + + //See List.asm for (cryptic) item # descriptions + + for (int i = 0; i < 300; i++) + _itemList[i] = (void*)NULL; + + //init the non-null items + /* + _itemList[119] = (void*)data_0; // Compacts - Section 0 + _itemList[120] = (void*)data_1; // Compacts - Section 1 + + if (_isDemo) { + _itemList[121] = _itemList[122] = _itemList[123] = _itemList[124] = _itemList[125] = (void*)data_0; + } else { + _itemList[121] = (void*)data_2; // Compacts - Section 2 + _itemList[122] = (void*)data_3; // Compacts - Section 3 + _itemList[123] = (void*)data_4; // Compacts - Section 4 + _itemList[124] = (void*)data_5; // Compacts - Section 5 + _itemList[125] = (void*)data_6; // Compacts - Section 6 + } + */ } void SkyState::delay(uint amount) { //copied and mutilated from Simon.cpp |