From 197a9be59c4814533e25e4e8e04a7da6bc1f1dfc Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sun, 17 Jul 2022 20:17:48 -0500 Subject: [PATCH] Fixed response system support for escaped quotes causing backslashes to stop working --- sp/src/game/shared/ai_responsesystem_new.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sp/src/game/shared/ai_responsesystem_new.cpp b/sp/src/game/shared/ai_responsesystem_new.cpp index 9b519902..b639f270 100644 --- a/sp/src/game/shared/ai_responsesystem_new.cpp +++ b/sp/src/game/shared/ai_responsesystem_new.cpp @@ -188,6 +188,12 @@ skipwhite: token[len] = 0; return data; } + else if (c != '\"' && escaped) + { + // Not an escape character, just a back slash + token[len] = '\\'; + len++; + } escaped = (c == '\\'); if (!escaped)