COOP is always allowed

This commit is contained in:
flowtron
2021-06-21 10:28:46 +02:00
parent e8c932d706
commit 29b723a822
+1 -1
View File
@@ -518,7 +518,7 @@ int defaultgamelimit(int gamemode) { return m_teammode ? 15 : 10; }
int gmode_possible(bool hasffaspawns, bool hasteamspawns, bool hasflags) // return bitmask of playable modes, according to existing spawn and flag entities
{
return ((hasffaspawns ? GMMASK__FFASPAWN : 0) | (hasteamspawns ? GMMASK__TEAMSPAWN : 0)) & ~(hasflags ? 0 : GMMASK__FLAGENTS);
return GMMASK_COOPEDIT | (((hasffaspawns ? GMMASK__FFASPAWN : 0) | (hasteamspawns ? GMMASK__TEAMSPAWN : 0)) & ~(hasflags ? 0 : GMMASK__FLAGENTS));
}
int gmode_parse(const char *list) // convert a list of mode acronyms to a bitmask