mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:23:47 +00:00
Add an engine "compatible" version
When a patch version is released, it must declare compatibility with the
previous patch versions of the same main release. This allows players to
keep replaying their games and to keep playing online with users of
other patches of the same main release.
This should have anticipated for dae7a8c394
This commit is contained in:
+3
-1
@@ -561,7 +561,9 @@ static void RunGameOrAtlas(const std::span<const char* const> argv)
|
||||
|
||||
if (args.Has("version"))
|
||||
{
|
||||
debug_printf("Pyrogenesis %s\n", PYROGENESIS_VERSION);
|
||||
debug_printf("Pyrogenesis %s\n", PS_VERSION);
|
||||
if (std::strcmp(PS_VERSION, PS_SERIALIZATION_VERSION) != 0)
|
||||
debug_printf("Compatible down to patch %s\n", PS_SERIALIZATION_VERSION);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user