aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r--engines/wage/script.cpp11
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);