diff options
author | Eugene Sandulenko | 2017-08-18 19:12:36 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-18 19:13:22 +0200 |
commit | 2354c9de12b21974737f6ac456d2565b7f32e7e1 (patch) | |
tree | 634dd5eb1e7124b3b5fa44e1b5036088d2a9e846 /engines/wage/script.cpp | |
parent | bedbe39087531a4ee5d1a9a58e63b7f200426172 (diff) | |
download | scummvm-rg350-2354c9de12b21974737f6ac456d2565b7f32e7e1.tar.gz scummvm-rg350-2354c9de12b21974737f6ac456d2565b7f32e7e1.tar.bz2 scummvm-rg350-2354c9de12b21974737f6ac456d2565b7f32e7e1.zip |
WAGE: Do not error on unprintable characters.
Makes Swamp Witch start
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r-- | engines/wage/script.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index c4cf23fcb1..3405c8bf47 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -1161,12 +1161,19 @@ void Script::convertToText() { break; if (c < 0x80) { - if (c < 0x20) - error("convertToText: Unknown code 0x%02x at %d", c, _data->pos()); + if (c < 0x20) { + warning("convertToText: Unknown code 0x%02x at %d", c, _data->pos()); + c = ' '; + } do { scr->line += c; c = _data->readByte(); + + if (c < 0x20) { + warning("convertToText: Unknown code 0x%02x at %d", c, _data->pos()); + c = ' '; + } } while (c < 0x80); _data->seek(-1, SEEK_CUR); |