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:
@ -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;
|
||||
|
Reference in New Issue
Block a user