Skip to content

Commit

Permalink
Fix issue causing "Dialogue Multiple Choice" event to cut off menu it…
Browse files Browse the repository at this point in the history
…ems early
  • Loading branch information
chrismaltby committed Nov 9, 2024
1 parent 43d237e commit ae071b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions src/lib/compiler/scriptBuilder.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ae071b4

Please sign in to comment.