Use the PYROGENESIS_VERSION macro instead of a global

Reviewed-At: https://gitea.wildfiregames.com/0ad/0ad/pulls/8222
This commit is contained in:
Itms
2025-10-21 20:41:10 +02:00
parent f0c8db6422
commit 50f6da2a13
12 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ void CReplayLogger::StartGame(JS::MutableHandleValue attribs)
Script::SetProperty(rq, attribs, "timestamp", (double)std::time(nullptr));
// Add engine version and currently loaded mods for sanity checks when replaying
Script::SetProperty(rq, attribs, "engine_version", engine_version);
Script::SetProperty(rq, attribs, "engine_version", PYROGENESIS_VERSION);
JS::RootedValue mods(rq.cx);
Script::ToJSVal(rq, &mods, g_Mods.GetEnabledModsData());
Script::SetProperty(rq, attribs, "mods", mods);