gameServer2/src/server/server.rs
changeset 13426 f091f69d59e4
parent 13422 5fb27f94fc3b
child 13442 c6a3784ff2c1
--- a/gameServer2/src/server/server.rs	Tue Jun 26 23:20:28 2018 -0400
+++ b/gameServer2/src/server/server.rs	Wed Jun 27 17:58:33 2018 +0300
@@ -64,6 +64,7 @@
     fn get_recipients(&self, client_id: ClientId, destination: Destination) -> Vec<ClientId> {
         let mut ids = match destination {
             Destination::ToSelf => vec![client_id],
+            Destination::ToId(id) => vec![id],
             Destination::ToAll {room_id: Some(id), ..} =>
                 self.room_clients(id),
             Destination::ToAll {protocol: Some(proto), ..} =>