diff options
author | Robert Göffringmann | 2003-07-02 01:46:25 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-07-02 01:46:25 +0000 |
commit | 1b5ea45887d4c853603fd5dedb02b8cf56eeb458 (patch) | |
tree | d4451fb5da7b59546ecdd6e32f1f4d2dc71fbe98 /sky/sky.cpp | |
parent | 14cfa71ab76024941b0bfd99171045a07a6f018a (diff) | |
download | scummvm-rg350-1b5ea45887d4c853603fd5dedb02b8cf56eeb458.tar.gz scummvm-rg350-1b5ea45887d4c853603fd5dedb02b8cf56eeb458.tar.bz2 scummvm-rg350-1b5ea45887d4c853603fd5dedb02b8cf56eeb458.zip |
fixed save/restore grid problems
svn-id: r8703
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r-- | sky/sky.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index a1278a5492..e9445ee76b 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -54,7 +54,7 @@ Engine *Engine_SKY_create(GameDetector *detector, OSystem *syst) { void **SkyState::_itemList[300]; -SystemVars SkyState::_systemVars = {0, 0, 0, 0, 4316, 0}; +SystemVars SkyState::_systemVars = {0, 0, 0, 0, 4316, 0, false}; SkyState::SkyState(GameDetector *detector, OSystem *syst) : Engine(detector, syst) { @@ -96,8 +96,10 @@ void SkyState::go() { initialise(); + bool introSkipped; if (!isDemo() || isCDVersion()) - intro(); + introSkipped = !intro(); + else introSkipped = false; _skyDisk->flushPrefetched(); @@ -105,6 +107,9 @@ void SkyState::go() { _paintGrid = false; + /*if (introSkipped) + _skyControl->restartGame();*/ + while (1) { delay(_systemVars.gameSpeed); if (_key_pressed == 'r') { @@ -119,10 +124,15 @@ void SkyState::go() { _skyScreen->forceRefresh(); _key_pressed = 0; } + if (_key_pressed == 63) { _key_pressed = 0; _skyControl->doControlPanel(); } + + /*if ((_key_pressed == 27) && (!_systemVars.pastIntro)) + _skyControl->restartGame();*/ + _skyMouse->mouseEngine((uint16)_sdl_mouse_x, (uint16)_sdl_mouse_y); _skyLogic->engine(); if (!_skyLogic->checkProtection()) { // don't let copy prot. screen flash up |