Bug Fixes
Player
- Free the game state with delete at exit, as it was made with new
af2f011170The player's game state was created with new and released with free at quit. Nothing visible came of it, but valgrind and AddressSanitizer both stop on the mismatch, and under ASan it aborted every replay run at exit.
- Strings with warp commands could corrupt memory
3bbd623ac9A string command can dismiss the message it belongs to (the warp command does, via the warp). The message code kept advancing the message after that, through an iterator the dismissal had already destroyed.
Stop advancing the message once a command has dismissed it. The end-of-string work that used to follow still runs, so the game sees the same thing it did before.
Bug introduced when the message string renderer was rewritten in 3.0.0-prerelease.104+2025-05-14 (71b272aee9).
ZScript
- Asserting builds aborted compiling some scripts with the experimental optimizer
106b327269Rosemaster's scripts tripped an assertion in asmjit's register allocator under -optimize-ZASM-experimental, which only asserting builds (Debug, Asan) check. The emitted code was correct in Release: the register the allocator disagreed with itself about was dead.
Pulls the asmjit fork commit that fixes the allocator, with a regression test there.
Bug introduced when very large scripts were split into pieces in 3.0.0-prerelease.228+2026-10-11 (e649140be6).
Build
- [win] work on Windows 7 again
9ba8c36251DiscordSince 3.0.0-prerelease.232, every program failed to start on Windows 7 with "The application was unable to start correctly (0xc0000005)".
- Only report to Sentry from official builds
5ef2fff6de - Fix the Linux Asan link, and build Asan at -O1 with GCC and Clang
609b7038f3The Asan build has not linked on Linux for a while: libgme is a shared library there and links with -Wl,-no-undefined, which rejects the sanitizer runtime symbols a sanitized shared library leaves for the executable to provide. Keep that flag for every other config.
Asan also inherited Debug's -O0. The sanitizer still finds nearly every error at -O1 (only bad reads whose value is never used get optimized away), and the replay suite runs several times faster, which is what makes running replays under ASan reasonable. Asserts stay on. MSVC's Asan config still builds from the Debug flags.
CI
- Fail Windows packaging on imports Windows 7 doesn't have
ce21e4bed6Windows 7 won't start an exe that imports a function it doesn't have, and nothing caught it when 3.0.0-prerelease.232 started importing WakeByAddressSingle (Windows 8+).
- Link Sentry in every CI build
d18585200c - Always make a Sentry release when releasing
0c0302d8c1Removes the release workflow's
sentrycheckbox. Official builds always report crashes now, so a release without debug info uploaded would get unreadable crash reports. build.yml uploads debug info for every official build instead of taking a separatesentryinput.