diff options
author | Joost Peters | 2003-05-01 14:10:42 +0000 |
---|---|---|
committer | Joost Peters | 2003-05-01 14:10:42 +0000 |
commit | d9caf96ef90ec2397df294775f7b71e7efa255d3 (patch) | |
tree | 35568c005cdc6b4beb9cafbbcf21b29229ddec70 /sky | |
parent | 8e606a99ff4fd61e74b73f1e6883b5c27178c34b (diff) | |
download | scummvm-rg350-d9caf96ef90ec2397df294775f7b71e7efa255d3.tar.gz scummvm-rg350-d9caf96ef90ec2397df294775f7b71e7efa255d3.tar.bz2 scummvm-rg350-d9caf96ef90ec2397df294775f7b71e7efa255d3.zip |
added loadFixedItems() and loadBase0()
svn-id: r7250
Diffstat (limited to 'sky')
-rw-r--r-- | sky/sky.cpp | 36 | ||||
-rw-r--r-- | sky/sky.h | 2 |
2 files changed, 37 insertions, 1 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index f5aa44700c..d364351e77 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -92,7 +92,8 @@ void SkyState::go() { if (!isDemo(_gameVersion) || isCDVersion(_gameVersion)) intro(); - _skyGrid->loadGrids(); + loadBase0(); + while (1) { delay(100); _skyLogic->engine(); @@ -116,6 +117,7 @@ void SkyState::initialise(void) { initItemList(); //initScript(); //initialiseRouter(); + loadFixedItems(); _skyGrid = new SkyGrid(_skyDisk); _skyLogic = new SkyLogic(_skyDisk, _skyGrid, _skyText); } @@ -142,6 +144,38 @@ void SkyState::initItemList() { } } +void SkyState::loadBase0(void) { + + //fnEnterSection(0); + _skyMusic->startMusic(2); + _skyGrid->loadGrids(); + +} + +void SkyState::loadFixedItems(void) { + + if (!isDemo(_gameVersion)) + _itemList[36] = (void **)_skyDisk->loadFile(26, NULL); + + _itemList[49] = (void **)_skyDisk->loadFile(49, NULL); + _itemList[50] = (void **)_skyDisk->loadFile(50, NULL); + _itemList[73] = (void **)_skyDisk->loadFile(73, NULL); + _itemList[262] = (void **)_skyDisk->loadFile(262, NULL); + + if (isDemo(_gameVersion)) + return; + + _itemList[263] = (void **)_skyDisk->loadFile(263, NULL); + _itemList[264] = (void **)_skyDisk->loadFile(264, NULL); + _itemList[265] = (void **)_skyDisk->loadFile(265, NULL); + _itemList[266] = (void **)_skyDisk->loadFile(266, NULL); + _itemList[267] = (void **)_skyDisk->loadFile(267, NULL); + _itemList[269] = (void **)_skyDisk->loadFile(269, NULL); + _itemList[271] = (void **)_skyDisk->loadFile(271, NULL); + _itemList[272] = (void **)_skyDisk->loadFile(272, NULL); + +} + Compact *SkyState::fetchCompact(uint32 a) { SkyDebug::fetchCompact(a); uint32 sectionNum = (a & 0xf000) >> 12; @@ -144,6 +144,8 @@ protected: void startTimerSequence(byte *sequence); static void timerHandler(void *ptr); void doTimerSequence(); + void loadFixedItems(); + void loadBase0(); static int CDECL game_thread_proc(void *param); |