1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Implemented join room dialog

This commit is contained in:
Ivan Savenko
2024-04-16 16:30:22 +03:00
parent e5f8cefa7f
commit 1840666327
17 changed files with 372 additions and 96 deletions

View File

@ -59,6 +59,16 @@ std::string CModVersion::toString() const
return res;
}
bool CModVersion::operator ==(const CModVersion & other) const
{
return major == other.major && minor == other.minor && patch == other.patch;
}
bool CModVersion::operator !=(const CModVersion & other) const
{
return major != other.major || minor != other.minor || patch != other.patch;
}
bool CModVersion::compatible(const CModVersion & other, bool checkMinor, bool checkPatch) const
{
bool doCheckMinor = checkMinor && minor != Any && other.minor != Any;