check game mode for v1/v2 crossplay

This commit is contained in:
Martin Michelsen
2023-12-21 14:57:34 -08:00
parent 522c1848e1
commit 30cf74ee87
+2 -2
View File
@@ -3935,7 +3935,7 @@ shared_ptr<Lobby> create_game_generic(
}
break;
case Version::DC_V2:
if (allow_v1 && (difficulty <= 2)) {
if (allow_v1 && (difficulty <= 2) && (mode == GameMode::NORMAL)) {
game->allow_version(Version::DC_V1);
}
game->allow_version(Version::DC_V2);
@@ -3950,7 +3950,7 @@ shared_ptr<Lobby> create_game_generic(
game->allow_version(Version::PC_V2);
if (s->allow_dc_pc_games) {
game->allow_version(Version::DC_V2);
if (allow_v1 && (difficulty <= 2)) {
if (allow_v1 && (difficulty <= 2) && (mode == GameMode::NORMAL)) {
game->allow_version(Version::DC_V1);
}
}