From 7d6020f37a606f2029b2d6c31704e5c1adaf1df6 Mon Sep 17 00:00:00 2001 From: James Brown Date: Mon, 25 Mar 2002 10:05:32 +0000 Subject: Fix text in pre-v3 games. Still broken: Charset outline color, scripts randomly hanging, sound, actor animations, bootparams, full throttle. svn-id: r3826 --- sdl.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sdl.cpp b/sdl.cpp index 0d7d3fda10..f127d66f86 100644 --- a/sdl.cpp +++ b/sdl.cpp @@ -981,7 +981,7 @@ int main(int argc, char* argv[]) { scumm->vm.cutSceneScriptIndex=0; scumm->vm.cutSceneStackPointer=0; - + scumm->_scummStackPos=0; scumm->_verbMouseOver=0; @@ -1072,6 +1072,17 @@ int main(int argc, char* argv[]) { scumm->_PALS_offs = 0; scumm->_fastMode = 0; + + for (i=0; i<6; i++) { + scumm->string[i].t_center = 0; + scumm->string[i].t_xpos = 0; + scumm->string[i].t_ypos = 0; + scumm->string[i].t_color = 0; + scumm->string[i].t_overhead =0; + scumm->string[i].t_charset = 0; + scumm->string[i].t_right = 0; + } + scumm->_charsetColor = 0; /* */ @@ -1106,8 +1117,6 @@ int main(int argc, char* argv[]) { // scumm->scummMain(argc, argv); // Todo: need to change that as well gui.init(scumm); /* Reinit GUI after loading a game */ - - scumm->mainRun(); return 0; -- cgit v1.2.3