HE80+ games store current charset numberin VAR80.

Fixes crash in bb2demo.

svn-id: r17885
This commit is contained in:
Travis Howell 2005-05-01 12:25:30 +00:00
parent e3b906b569
commit ae14f7049e
4 changed files with 7 additions and 0 deletions

View file

@ -757,6 +757,10 @@ void ScummEngine::initCharset(int charsetno) {
for (i = 0; i < 16; i++)
_charsetColorMap[i] = _charsetData[charsetno][i];
if (_heversion >= 80) {
VAR(VAR_CURRENT_CHARSET) = charsetno;
}
}
void ScummEngine_v6::enqueueText(const byte *text, int x, int y, byte color, byte charset, bool center) {