diff options
author | Robert Göffringmann | 2003-12-16 18:23:15 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-12-16 18:23:15 +0000 |
commit | 0cf52df6510cbb06b6b8489beac829d58687542d (patch) | |
tree | eb129b32b5bdb4860daf5fae74bd2a1f7153d667 /sword1/screen.cpp | |
parent | de51f631be939a9da9ef0dd2e5f33fc605bdd01b (diff) | |
download | scummvm-rg350-0cf52df6510cbb06b6b8489beac829d58687542d.tar.gz scummvm-rg350-0cf52df6510cbb06b6b8489beac829d58687542d.tar.bz2 scummvm-rg350-0cf52df6510cbb06b6b8489beac829d58687542d.zip |
copied the SwordRouter from the original BS1 sources.
It doesn't fit to our coding guidelines but at least it's working, so please bear with it for now. :)
svn-id: r11687
Diffstat (limited to 'sword1/screen.cpp')
-rw-r--r-- | sword1/screen.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/sword1/screen.cpp b/sword1/screen.cpp index a4b4e3bfde..c6cd8dcf85 100644 --- a/sword1/screen.cpp +++ b/sword1/screen.cpp @@ -285,7 +285,7 @@ void SwordScreen::newScreen(uint32 screen) { _targetPalette[0] = _targetPalette[1] = _targetPalette[2] = 0; _system->set_palette(_targetPalette, 0, 256); _resMan->resClose(_roomDefTable[_currentScreen].palettes[0]); - _resMan->resClose(_roomDefTable[_currentScreen].palettes[1]); + //_resMan->resClose(_roomDefTable[_currentScreen].palettes[1]); } void SwordScreen::quitScreen(void) { @@ -861,24 +861,5 @@ void SwordScreen::drawLine(uint16 x1, uint16 y1, uint16 x2, uint16 y2) { bsubline_4(x1, y1, x2, y2); } else { bsubline_3(x1, y1, x2, y2); - } - -} - -void SwordScreen::showBarsAndNodes(SwordRouter *router) { - for (uint16 cnt = 0; cnt < router->_nBars; cnt++) { - drawLine(router->_bars[cnt].x1 - 128, router->_bars[cnt].y1 - 128, router->_bars[cnt].x2 - 128, router->_bars[cnt].y2 - 128); - } - if (!router->_nNodes) - return; - for (uint16 cnt = 0; cnt <= router->_nNodes; cnt++) { - uint16 y = router->_node[cnt].y - 128; - uint16 x = router->_node[cnt].x - 128; - vline(x, y - 2, y + 2); - hline(x - 2, x + 2, y); - if (router->_node[cnt].dist != 9999) { - drawLine(x, y, router->_node[router->_node[cnt].prev].x - 128, router->_node[router->_node[cnt].prev].y - 128); - } - } + } } - |