Skip to content

Commit 1013766

Browse files
committed
ref
1 parent a91ea1b commit 1013766

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cleo_plugins/Text/Text.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ class Text
154154

155155
static bool CanThisTextBeAddedToBrief(const char* text)
156156
{
157+
if (!CTheScripts::bAddNextMessageToPreviousBriefs) return false;
158+
157159
for (const auto& brief : CMessages::PreviousBriefs)
158160
{
159161
const auto briefText = brief.m_pText;
@@ -187,7 +189,7 @@ class Text
187189

188190
if (IsLegacyScript(thread)) return;
189191

190-
if (CTheScripts::bAddNextMessageToPreviousBriefs && CanThisTextBeAddedToBrief(text))
192+
if (CanThisTextBeAddedToBrief(text))
191193
{
192194
CMessages::AddToPreviousBriefArray(PrepareThisTextForBrief(text), -1, -1, -1, -1, -1, -1, 0);
193195
}
@@ -236,8 +238,7 @@ class Text
236238

237239
// check game brief and decide whether this message can be added to it.
238240
// Note: legacy scripts never modify the game brief.
239-
const auto addToBrief =
240-
!isLegacy && CTheScripts::bAddNextMessageToPreviousBriefs && CanThisTextBeAddedToBrief(text);
241+
const auto addToBrief = !isLegacy && CanThisTextBeAddedToBrief(text);
241242

242243
if (addToBrief)
243244
{

0 commit comments

Comments
 (0)