summaryrefslogtreecommitdiff
path: root/src/network/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/network/room.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/room.cpp b/src/network/room.cpp
index cd0c0ebc4..528867146 100644
--- a/src/network/room.cpp
+++ b/src/network/room.cpp
@@ -251,7 +251,7 @@ public:
251void Room::RoomImpl::ServerLoop() { 251void Room::RoomImpl::ServerLoop() {
252 while (state != State::Closed) { 252 while (state != State::Closed) {
253 ENetEvent event; 253 ENetEvent event;
254 if (enet_host_service(server, &event, 50) > 0) { 254 if (enet_host_service(server, &event, 16) > 0) {
255 switch (event.type) { 255 switch (event.type) {
256 case ENET_EVENT_TYPE_RECEIVE: 256 case ENET_EVENT_TYPE_RECEIVE:
257 switch (event.packet->data[0]) { 257 switch (event.packet->data[0]) {
@@ -599,7 +599,7 @@ bool Room::RoomImpl::HasModPermission(const ENetPeer* client) const {
599 if (sending_member == members.end()) { 599 if (sending_member == members.end()) {
600 return false; 600 return false;
601 } 601 }
602 if (room_information.enable_citra_mods && 602 if (room_information.enable_yuzu_mods &&
603 sending_member->user_data.moderator) { // Community moderator 603 sending_member->user_data.moderator) { // Community moderator
604 604
605 return true; 605 return true;
@@ -1014,7 +1014,7 @@ bool Room::Create(const std::string& name, const std::string& description,
1014 const u32 max_connections, const std::string& host_username, 1014 const u32 max_connections, const std::string& host_username,
1015 const std::string& preferred_game, u64 preferred_game_id, 1015 const std::string& preferred_game, u64 preferred_game_id,
1016 std::unique_ptr<VerifyUser::Backend> verify_backend, 1016 std::unique_ptr<VerifyUser::Backend> verify_backend,
1017 const Room::BanList& ban_list, bool enable_citra_mods) { 1017 const Room::BanList& ban_list, bool enable_yuzu_mods) {
1018 ENetAddress address; 1018 ENetAddress address;
1019 address.host = ENET_HOST_ANY; 1019 address.host = ENET_HOST_ANY;
1020 if (!server_address.empty()) { 1020 if (!server_address.empty()) {
@@ -1037,7 +1037,7 @@ bool Room::Create(const std::string& name, const std::string& description,
1037 room_impl->room_information.preferred_game = preferred_game; 1037 room_impl->room_information.preferred_game = preferred_game;
1038 room_impl->room_information.preferred_game_id = preferred_game_id; 1038 room_impl->room_information.preferred_game_id = preferred_game_id;
1039 room_impl->room_information.host_username = host_username; 1039 room_impl->room_information.host_username = host_username;
1040 room_impl->room_information.enable_citra_mods = enable_citra_mods; 1040 room_impl->room_information.enable_yuzu_mods = enable_yuzu_mods;
1041 room_impl->password = password; 1041 room_impl->password = password;
1042 room_impl->verify_backend = std::move(verify_backend); 1042 room_impl->verify_backend = std::move(verify_backend);
1043 room_impl->username_ban_list = ban_list.first; 1043 room_impl->username_ban_list = ban_list.first;