From f55320f988a481ee7d92bcce39dfcbbf31d4151a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 15 Nov 2006 13:11:53 +0000 Subject: Add inital pause code for Elvira 1/2 & WW, and cleanup svn-id: r24723 --- engines/agos/charset.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engines/agos/charset.cpp') diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index 6650581eef..982272447f 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -72,7 +72,7 @@ void AGOSEngine::print_char_helper_1(const byte *src, uint len) { } } -void AGOSEngine::print_char_helper_5(WindowBlock *window) { +void AGOSEngine::clsCheck(WindowBlock *window) { uint index = getWindowNum(window); tidyIconArray(index); _fcsData1[index] = 0; @@ -311,6 +311,13 @@ void AGOSEngine::showMessageFormat(const char *s, ...) { va_end(va); if (!_fcsData1[_curWindow]) { + if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 || getGameType() == GType_WW) { + if (_showMessageFlag) { + if (_windowArray[_curWindow]->flags & 128) { + haltAnimation(); + } + } + } openTextWindow(); if (!_showMessageFlag) { _windowArray[0] = _textWindow; @@ -343,7 +350,7 @@ void AGOSEngine::justifyOutPut(byte chr) { _printCharCurPos = 0; _printCharPixelCount = 0; print_char_helper_1(&chr, 1); - print_char_helper_5(_textWindow); + clsCheck(_textWindow); } else if (chr == 0 || chr == ' ' || chr == 10) { bool fit; -- cgit v1.2.3