mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Original games used blastTextQueue size of 50.
Hack no longer required. svn-id: r14673
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user