Fix: make 13.2.1 act like 13.2 for networking

This commit is contained in:
Patric Stout 2023-06-11 12:44:44 +02:00 committed by Patric Stout
parent 4b7fcaca0f
commit ee6e30ead9
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ std::string_view GetNetworkRevisionString()
if (network_revision.empty()) {
network_revision = _openttd_revision;
if (_openttd_revision_tagged) {
/* 13.2.1 is a fix-release with only a single change in the Win32 video driver.
* As such, it is safe to call it 13.2 from a networking point of view. */
if (network_revision == "13.2.1") network_revision = "13.2";
/* Tagged; do not mangle further, though ensure it's not too long. */
if (network_revision.size() >= NETWORK_REVISION_LENGTH) network_revision.resize(NETWORK_REVISION_LENGTH - 1);
} else {