From 2620d6836c001f2f295cb6efd6beab78f5a3c50f Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 8 Mar 2009 08:45:21 +0000 Subject: Add initial support for Personal Nightmare. Thanks to dreammaster for file decompression and icon decoding code. NOTE: setjmp/longjmp code will require conversion for portability. svn-id: r39216 --- engines/agos/charset.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'engines/agos/charset.cpp') diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index 8acfecb1ce..3f38e17ea1 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -610,13 +610,21 @@ void AGOSEngine::windowNewLine(WindowBlock *window) { window->textColumnOffset = (getGameType() == GType_ELVIRA2) ? 4 : 0; window->textLength = 0; - if (window->textRow == window->height) { - if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 || - getGameType() == GType_WW) { + if (getGameType() == GType_PN) { + window->textRow++; + if (window->textRow == window->height) { windowScroll(window); + window->textRow--; } } else { - window->textRow++; + if (window->textRow == window->height) { + if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 || + getGameType() == GType_WW) { + windowScroll(window); + } + } else { + window->textRow++; + } } } -- cgit v1.2.3