From bf9b0468f67847d049a43c47c0e76c7bab76375d Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Thu, 21 Nov 2013 05:19:22 +0100 Subject: [PATCH] Don't freeze broken scripts Instead, continue with the next line. Our script parsing is slightly stricter than the original AF and doesn't allow commands to span multiple lines. This only affects a few scripts with newlines between the wrong tokens, some of which already have script warning suppressions - and we already continued with the next line if there was a script warning suppression defined. These peculiar newline positions should be fixed in the actual scripts once we have the infrastructure for that. Until then, they can be collected as script warning suppressions. Fixes: bug #584 --- src/script/ScriptEvent.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/script/ScriptEvent.cpp b/src/script/ScriptEvent.cpp index 8d3bb57474..f6df55edc5 100644 --- a/src/script/ScriptEvent.cpp +++ b/src/script/ScriptEvent.cpp @@ -457,12 +457,6 @@ ScriptResult ScriptEvent::send(EERIE_SCRIPT * es, ScriptMessage msg, const std:: ScriptEventWarning << "<-- unknown command: " << word; - // TODO(broken-scripts) - if(!isSuppressed(context, word)) { - io->ioflags |= IO_FREEZESCRIPT; - return REFUSE; - } - context.skipCommand(); }