diff options
author | Benjamin Haisch | 2008-10-04 21:40:14 +0000 |
---|---|---|
committer | Benjamin Haisch | 2008-10-04 21:40:14 +0000 |
commit | 99f8add65cb61d1e8da23f734da249687d24919e (patch) | |
tree | 53c0038c50476884891b861e1100bb17c6b206fc /engines/made/scriptfuncs.cpp | |
parent | b41cd58cee80ae682d6806fc448ca6772fd8ef61 (diff) | |
download | scummvm-rg350-99f8add65cb61d1e8da23f734da249687d24919e.tar.gz scummvm-rg350-99f8add65cb61d1e8da23f734da249687d24919e.tar.bz2 scummvm-rg350-99f8add65cb61d1e8da23f734da249687d24919e.zip |
- Declared all stack functions as inline
- Sleep some ms after 500 opcodes to reduce CPU load
- Fixed odd bug in LGoP2 where text disappeared quickly without waiting for user input by returning 0x38 in sfShowPage
svn-id: r34746
Diffstat (limited to 'engines/made/scriptfuncs.cpp')
-rw-r--r-- | engines/made/scriptfuncs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp index 0051b80dae..835d846108 100644 --- a/engines/made/scriptfuncs.cpp +++ b/engines/made/scriptfuncs.cpp @@ -195,7 +195,10 @@ int16 ScriptFunctions::sfClearScreen(int16 argc, int16 *argv) { int16 ScriptFunctions::sfShowPage(int16 argc, int16 *argv) { _vm->_screen->show(); - return 0; + // NOTE: We need to return something != 0 here or some game scripts won't + // work correctly. The actual meaning of this value is unknown to me. + // 0x38 was found out by analyzing debug output of the original engine. + return 0x38; } int16 ScriptFunctions::sfPollEvent(int16 argc, int16 *argv) { |