diff options
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) { |