This commit is contained in:
aozhiwei 2023-06-25 16:02:53 +08:00
parent 8fb4e8b212
commit b6a24d878b

View File

@ -1082,7 +1082,7 @@ bool Room::CanJoin(const std::string& accountid,
}
}
}
if (IsPvpRankModeRoom() && GetPlayerNum() >= mt::Param::s().rank_mode_min_player) {
if (IsPvpRankModeRoom() && GetOnlinePlayerNum() >= mt::Param::s().rank_mode_min_player) {
if (lock_room_timer_.expired()) {
lock_room_timer_ = xtimer.SetIntervalWpEx
(SERVER_FRAME_RATE * 10,