make the whole version mismatch mechanic user-configurable

This commit is contained in:
Matthias Mailänder
2013-03-27 12:19:22 +01:00
parent 8a13bc68ef
commit 81dac5521f
6 changed files with 31 additions and 16 deletions

View File

@@ -36,10 +36,10 @@ namespace OpenRA.Network
static bool AreVersionsCompatible(string a, string b)
{
/* dev versions are assumed compatible; if you're using one,
* we trust that you know what you're doing. */
if (Game.Settings.Debug.IgnoreVersionMismatch)
return true;
return a == "{DEV_VERSION}" || b == "{DEV_VERSION}" || a == b;
return a == b;
}
public bool CanJoin()