From ae071b4d89d4c33971a7b206cc8822cc10ca01d5 Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Sat, 9 Nov 2024 11:08:46 +0000 Subject: [PATCH] Fix issue causing "Dialogue Multiple Choice" event to cut off menu items early --- CHANGELOG.md | 1 + src/lib/compiler/scriptBuilder.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 614140619..48045e03b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix bottom margins when using GB Printer [@untoxa](https://github.com/untoxa) - Fix variable uses list which wasn't including variable "0"'s uses in text fields - Fix issue where "Set Animation Frame" event wouldn't allow frame values greater than 25 +- Fix issue causing "Dialogue Multiple Choice" event to cut off menu items early ## [4.1.3] - 2024-09-16 diff --git a/src/lib/compiler/scriptBuilder.ts b/src/lib/compiler/scriptBuilder.ts index afe428b65..ac5aff1fb 100644 --- a/src/lib/compiler/scriptBuilder.ts +++ b/src/lib/compiler/scriptBuilder.ts @@ -1,7 +1,6 @@ import SparkMD5 from "spark-md5"; import { inputDec } from "./helpers"; import { decBin, decHex, decOct, hexDec } from "shared/lib/helpers/8bit"; -import trimlines from "shared/lib/helpers/trimlines"; import { is16BitCType } from "shared/lib/engineFields/engineFieldToCType"; import { globalVariableDefaultName, @@ -4215,8 +4214,8 @@ extern void __mute_mask_${symbol}; args: { trueText: string; falseText: string } ) => { const variableAlias = this.getVariableAlias(variable); - const trueText = trimlines(args.trueText || "", 17, 1) || "Choice A"; - const falseText = trimlines(args.falseText || "", 17, 1) || "Choice B"; + const trueText = args.trueText || "Choice A"; + const falseText = args.falseText || "Choice B"; const speedInstant = textCodeSetSpeed(0); const gotoFirstLine = textCodeGoto(3, 2); const gotoSecondLine = textCodeGoto(3, 3);