Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
#121 YU-RIS: Revert line merging changes made for #109
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Feb 20, 2023
1 parent 7bb6c53 commit 36fbe90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VNTextPatch.Shared/Scripts/Yuris/YurisScenarioScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private static string GetNextMessage(IEnumerator<ScriptString> stringEnumerator)

private IEnumerable<List<YurisAttribute>> GetStringAttributeGroups()
{
bool gameUsesPageBreaks = GetAttributes().Any(a => (GetAttributeValue(a) ?? "").Contains("\\p"));
// bool gameUsesPageBreaks = GetAttributes().Any(a => (GetAttributeValue(a) ?? "").Contains("\\p"));

using IEnumerator<YurisAttribute> attrEnumerator = GetAttributes().GetEnumerator();
List<YurisAttribute> commandAttrs = new List<YurisAttribute>();
Expand All @@ -195,7 +195,7 @@ private IEnumerable<List<YurisAttribute>> GetStringAttributeGroups()

IEnumerable<YurisAttribute> commandStringAttrs = GetStringAttributes(command, commandAttrs).Where(a => a.ValueLength > 0);
if (command.Id == _wordCommandId ||
command.Id == _returnCodeCommandId && commandAttrs[0].ValueLength == 0 && gameUsesPageBreaks ||
// command.Id == _returnCodeCommandId && commandAttrs[0].ValueLength == 0 && gameUsesPageBreaks ||
command.Id == _evalCommandId && !(GetAttributeValue(commandAttrs[0]) ?? "").Contains("\\p"))
{
stringAttrs.AddRange(commandStringAttrs);
Expand Down

0 comments on commit 36fbe90

Please sign in to comment.