Restrict PC Brutal Peeps rooms to PC clients

This commit is contained in:
2026-06-07 15:48:38 -04:00
parent 9183c1e362
commit 7d609b6a40
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -618,6 +618,13 @@ Lobby::JoinError Lobby::join_error_for_client(std::shared_ptr<Client> c, const s
return JoinError::VERSION_CONFLICT;
}
if (this->is_game()) {
// Brutal Peeps PC rooms rely on PC-only BattleParam runtime patching, so don't allow DC V2 clients to join them.
if ((this->brutal_peeps_tier >= 1) &&
this->version_is_allowed(Version::PC_V2) &&
(c->version() != Version::PC_V2)) {
return JoinError::VERSION_CONFLICT;
}
if (this->check_flag(Flag::QUEST_SELECTION_IN_PROGRESS)) {
return JoinError::QUEST_SELECTION_IN_PROGRESS;
}