From 0e4e2cc68ccf2915a5eee76f5f1d727a22997bc1 Mon Sep 17 00:00:00 2001 From: Daneel53 Date: Fri, 19 Jun 2026 18:22:28 +0200 Subject: [PATCH] Update TalkManager.cs Replace the JustifyCenter token by a space so that successive lines of a record into Internal_RSC separated by a [/center] are not sicked together when displayed into the Dialogs window. --- Assets/Scripts/Game/TalkManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/Game/TalkManager.cs b/Assets/Scripts/Game/TalkManager.cs index faedb64d28..3e2adc7070 100644 --- a/Assets/Scripts/Game/TalkManager.cs +++ b/Assets/Scripts/Game/TalkManager.cs @@ -3570,6 +3570,9 @@ public static string TokensToString(TextFile.Token[] tokens, bool addSpaceAtToke string textFragment = tokens[i].text; if (textFragment != null && textFragment != string.Empty) builder.Append(textFragment); + else if (tokens[i].formatting == TextFile.Formatting.JustifyCenter) + // To avoid consecutive lines with [/center] in dialog screen to stick together. + builder.Append(" "); else builder.Append(separatorString); }