don't show incompatible rooms
authoralfadur
Sat, 13 Apr 2019 00:27:48 +0300
changeset 14806 da0cfeee9d96
parent 14805 2107fd023733
child 14807 a40139603cde
don't show incompatible rooms
rust/hedgewars-server/src/server/handlers/common.rs
--- a/rust/hedgewars-server/src/server/handlers/common.rs	Sat Apr 13 00:16:23 2019 +0300
+++ b/rust/hedgewars-server/src/server/handlers/common.rs	Sat Apr 13 00:27:48 2019 +0300
@@ -76,6 +76,7 @@
         server
             .rooms
             .iter()
+            .filter(|(_, r)| r.protocol_number == client.protocol_number)
             .flat_map(|(_, r)| r.info(r.master_id.map(|id| &server.clients[id])))
             .collect(),
     );