diff options
author | Filippos Karapetis | 2011-12-26 03:15:47 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-26 03:15:47 +0200 |
commit | d503838fd65db483a764d550cc6cce32984f6381 (patch) | |
tree | 0c74268df8db8865982facb7c9bf7ba6e761843a /engines/dreamweb/vgafades.cpp | |
parent | 9a89f8884c0da0ee7c979d6df19969713fa16bf5 (diff) | |
download | scummvm-rg350-d503838fd65db483a764d550cc6cce32984f6381.tar.gz scummvm-rg350-d503838fd65db483a764d550cc6cce32984f6381.tar.bz2 scummvm-rg350-d503838fd65db483a764d550cc6cce32984f6381.zip |
DREAMWEB: Moved the two rollEndCredits functions together in print.cpp and renamed them to rollEndCreditsGameWon and rollEndCreditsGameLost
Diffstat (limited to 'engines/dreamweb/vgafades.cpp')
-rw-r--r-- | engines/dreamweb/vgafades.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/engines/dreamweb/vgafades.cpp b/engines/dreamweb/vgafades.cpp index 23a8655fa1..3833050003 100644 --- a/engines/dreamweb/vgafades.cpp +++ b/engines/dreamweb/vgafades.cpp @@ -281,53 +281,4 @@ void DreamBase::dumpCurrent() { engine->setPalette(pal, 128, 128); } -void DreamBase::rollEndCredits2() { - rollEm(); -} - -void DreamBase::rollEm() { - // Note: This function is very similar to rollEndCredits() in sprite.cpp - - multiGet(mapStore(), 25, 20, 160, 160); - - const uint8 *string = getTextInFile1(49); - const int linespacing = data.word(kLinespacing); - - for (int i = 0; i < 80; ++i) { - // Output the text, initially with an offset of 10 pixels, - // then move it up one pixel until we shifted it by a complete - // line of text. - for (int j = 0; j < linespacing; ++j) { - vSync(); - multiPut(mapStore(), 25, 20, 160, 160); - vSync(); - - // Output up to 18 lines of text - uint16 y = 10 - j; - const uint8 *tmp_str = string; - for (int k = 0; k < 18; ++k) { - DreamBase::printDirect(&tmp_str, 25, &y, 160 + 1, true); - y += linespacing; - } - - vSync(); - multiDump(25, 20, 160, 160); - - if (data.byte(kLasthardkey) == 1) - return; - } - - // Skip to the next text line - byte c; - do { - c = *string++; - } while (c != ':' && c != 0); - - if (data.byte(kLasthardkey) == 1) - return; - } - - hangOne(120); -} - } // End of namespace DreamGen |