diff options
author | Robert Göffringmann | 2003-07-01 22:21:20 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-07-01 22:21:20 +0000 |
commit | 665ab4a8d9bcc5c4176351f208958449d0907b63 (patch) | |
tree | 4c3fc61fc5d537917776e710163730bb92d15fa7 /sky/sky.cpp | |
parent | ffaeb5424fca2eba2528f8c2d9db674d47f03395 (diff) | |
download | scummvm-rg350-665ab4a8d9bcc5c4176351f208958449d0907b63.tar.gz scummvm-rg350-665ab4a8d9bcc5c4176351f208958449d0907b63.tar.bz2 scummvm-rg350-665ab4a8d9bcc5c4176351f208958449d0907b63.zip |
bass is completable now.
svn-id: r8691
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r-- | sky/sky.cpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index 9228b66616..a1278a5492 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -103,25 +103,36 @@ void SkyState::go() { loadBase0(); + _paintGrid = false; + while (1) { delay(_systemVars.gameSpeed); - /*if (_key_pressed == 'g') { + if (_key_pressed == 'r') { warning("loading grid"); _skyLogic->_skyGrid->loadGrids(); _key_pressed = 0; - }*/ - if ((_key_pressed == 27) || (_key_pressed == 63)) { // 27 = escape, 63 = F5 + } + if (_key_pressed == 'g') { + _paintGrid = !_paintGrid; + warning("Grid paint: %s",(_paintGrid)?("ON"):("OFF")); + if (!_paintGrid) + _skyScreen->forceRefresh(); + _key_pressed = 0; + } + if (_key_pressed == 63) { _key_pressed = 0; _skyControl->doControlPanel(); } _skyMouse->mouseEngine((uint16)_sdl_mouse_x, (uint16)_sdl_mouse_y); _skyLogic->engine(); if (!_skyLogic->checkProtection()) { // don't let copy prot. screen flash up - //_skyScreen->forceRefresh(); + if (_paintGrid) + _skyScreen->forceRefresh(); _skyScreen->recreate(); _skyScreen->spriteEngine(); _skyScreen->flip(); - //_skyScreen->showGrid(_skyLogic->_skyGrid->giveGrid(SkyLogic::_scriptVariables[SCREEN])); + if (_paintGrid) + _skyScreen->showGrid(_skyLogic->_skyGrid->giveGrid(SkyLogic::_scriptVariables[SCREEN])); _system->update_screen(); } } |