FILE* accessScriptHandle = NULL;
char** main_scr; // Default value.
bool vndc_enabled = true;
- bool is_spoken_line = false;
+ bool quote_incomplete = false;
bool debug_mode = false;
bool debug_to_shell = false;
bool verbose = false;
if(GetData()->vndc_enabled && // 0 1 2 3 4 5
(GetData()->next_line[5] == '"' || // t e x t "
- GetData()->next_line[strlen(GetData()->next_line) - 1] == '"')) {
+ GetData()->next_line[strlen(GetData()->next_line) - 1] == '"' ||
+ GetData()->quote_incomplete)) {
GetData()->ctx->Audio()->FlushSfx();
+
+ if(GetData()->next_line[5] == '"' &&
+ !(GetData()->next_line[strlen(GetData()->next_line) - 1] == '"')) {
+ // Quote is incomplete.
+ GetData()->quote_incomplete = true;
+ }
+
+ if(GetData()->next_line[strlen(GetData()->next_line) - 1] == '"' &&
+ !(GetData()->next_line[5] == '"')) {
+ GetData()->quote_incomplete = false;
+ }
+
}
// Play command