diff options
author | Filippos Karapetis | 2015-12-24 11:59:03 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-12-24 11:59:03 +0200 |
commit | 05973b9b41e28d0f1cc81608aad0093d9efc5c60 (patch) | |
tree | 4c9d6ff7b7baed2a1bc787640c1c563aaff74558 | |
parent | 1206fe22b82a6b0af554e86b92afbbe80908f583 (diff) | |
download | scummvm-rg350-05973b9b41e28d0f1cc81608aad0093d9efc5c60.tar.gz scummvm-rg350-05973b9b41e28d0f1cc81608aad0093d9efc5c60.tar.bz2 scummvm-rg350-05973b9b41e28d0f1cc81608aad0093d9efc5c60.zip |
LAB: Get rid of a superfluous variable
-rw-r--r-- | engines/lab/intro.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index e5a41d6117..95f9c0277f 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -95,17 +95,15 @@ void Intro::doPictText(const Common::String filename, bool isScreen) { else if (isScreen) _vm->_graphics->fade(false); - int charDrawn = 0; if (isScreen) { _vm->_graphics->setPen(7); _vm->_graphics->rectFillScaled(10, 10, 310, 190); - charDrawn = _vm->_graphics->flowText(_font, _vm->_isHiRes ? 0 : -1, 5, 7, false, false, true, true, _vm->_utils->vgaRectScale(14, 11, 306, 189), (char *)curText); + curText += _vm->_graphics->flowText(_font, _vm->_isHiRes ? 0 : -1, 5, 7, false, false, true, true, _vm->_utils->vgaRectScale(14, 11, 306, 189), (char *)curText); _vm->_graphics->fade(true); } else - charDrawn = _vm->_graphics->longDrawMessage(Common::String((char *)curText), false); + curText += _vm->_graphics->longDrawMessage(Common::String((char *)curText), false); - curText += charDrawn; doneFl = (*curText == 0); drawNextText = false; |