Original games used blastTextQueue size of 50.

Hack no longer required.

svn-id: r14673
This commit is contained in:
Travis Howell
2004-08-22 07:22:03 +00:00
parent 312200f530
commit 4e2d3af646
2 changed files with 1 additions and 18 deletions
-17
View File
@@ -608,23 +608,6 @@ void ScummEngine::initCharset(int charsetno) {
}
void ScummEngine::enqueueText(const byte *text, int x, int y, byte color, byte charset, bool center) {
// The Dig will keep enqueueing texts long after they've scrolled off
// the screen, eventually overflowing the blast text queue if left
// unchecked.
if (y < 0) {
byte old_charset;
int font_height;
old_charset = _charset->getCurID();
_charset->setCurID(charset);
font_height = _charset->getFontHeight();
_charset->setCurID(old_charset);
if (y <= -font_height)
return;
}
BlastText &bt = _blastTextQueue[_blastTextQueuePos++];
assert(_blastTextQueuePos <= ARRAYSIZE(_blastTextQueue));