Propagate realm-reported build to world handshake for vanilla compatibility
Some checks failed
Build / Build (arm64) (push) Has been cancelled
Build / Build (x86-64) (push) Has been cancelled
Build / Build (macOS arm64) (push) Has been cancelled
Build / Build (windows-arm64) (push) Has been cancelled
Build / Build (windows-x86-64) (push) Has been cancelled
Security / CodeQL (C/C++) (push) Has been cancelled
Security / Semgrep (push) Has been cancelled
Security / Sanitizer Build (ASan/UBSan) (push) Has been cancelled

- Prefer realm.build over profile worldBuild when non-zero in CMSG_AUTH_SESSION
- Fixes vanilla (1.12.1 build 5875) servers rejecting connection due to wrong build
- Suppress v0.0.0 display in realm list when version info is all zeros
This commit is contained in:
Kelsi 2026-02-27 05:05:44 -08:00
parent 16d88f19fc
commit 0e1241ca60
2 changed files with 12 additions and 4 deletions

View file

@ -179,10 +179,10 @@ void RealmScreen::render(auth::AuthHandler& authHandler) {
ImGui::TextColored(ImVec4(0.4f, 0.9f, 1.0f, 1.0f),
" - %d character%s", realm.characters, realm.characters > 1 ? "s" : "");
}
if (realm.hasVersionInfo()) {
if (realm.hasVersionInfo() && (realm.majorVersion || realm.build)) {
ImGui::SameLine();
ImGui::TextDisabled(" v%d.%d.%d",
realm.majorVersion, realm.minorVersion, realm.patchVersion);
ImGui::TextDisabled(" v%d.%d.%d (build %d)",
realm.majorVersion, realm.minorVersion, realm.patchVersion, realm.build);
}
ImGui::Spacing();