From 30cf74ee8752608e604ecdc8a7c044fa71547675 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 21 Dec 2023 14:57:34 -0800 Subject: [PATCH] check game mode for v1/v2 crossplay --- src/ReceiveCommands.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 86c8e59d..f8af681c 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -3935,7 +3935,7 @@ shared_ptr 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 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); } }