Skip to content

Moonwell 0.18.1

Choose a tag to compare

@mdlsvensson mdlsvensson released this 14 Nov 17:35
· 6 commits to main since this release

Moonwell 0.18.1 moves to CSharp.lua 2.0.4-moonwell.25, which fixes two ways the C#-to-Lua step got || and && wrong.

The full suite passes, and Moonwell's cases pass on .NET and in Lua, in development and release builds. No new game check was needed: it is a compiler fix, covered by a Lua case.

Fixed

  • An out variable across a chain of ||: in a.TryGetValue(k, out v) || b.TryGetValue(k, out v) || c.TryGetValue(k, out v), the Lua declared the flag twice, so the third call still ran after the second found a value and overwrote it. A chain of two worked before.
  • A || or && kept in a bool: when it came out false, the variable held nil instead of false, so it printed as nothing and == false didn't match.

Known

  • Big-area heights (0.15.1) are experimental: on one map, classic graphics drew the ground flat while trees and units followed the heights.
  • Multiplayer is not checked yet, nor a game in another language.