Skip to content

Support pre 1.24 patches#1193

Open
Frotty wants to merge 2 commits into
masterfrom
support-pre-124
Open

Support pre 1.24 patches#1193
Frotty wants to merge 2 commits into
masterfrom
support-pre-124

Conversation

@Frotty
Copy link
Copy Markdown
Member

@Frotty Frotty commented Jun 2, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1902cfcc29

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +113 to +114
if (buildConfig.isPre124()) {
runArgs.setLegacyJassTypeChecks(true);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Propagate legacy Jass mode to the compile RunArgs

For pre-1.24 builds this only sets the MapRequest field, but the actual build path later calls compileScript(..., compileArgs, ...), constructs a fresh new RunArgs(compileArgs) and passes that to compileMap, so the compiler/PJass checks do not see legacyJassTypeChecks. In BuildMap/CliBuildMap with wc3Patch below 1.24, the stock common.j/blizzard.j return mismatches can still fail during the real compile (and PJass may still run); the flag needs to be carried into the RunArgs used by compileScript/compileMap rather than only this field.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant