gameServer2/src/protocol/messages.rs
changeset 13445 30ee161d85d0
parent 13444 c4f917c6be51
child 13449 914f9b970f4d
--- a/gameServer2/src/protocol/messages.rs	Wed Jul 04 04:42:16 2018 +0300
+++ b/gameServer2/src/protocol/messages.rs	Wed Jul 04 12:57:05 2018 +0300
@@ -201,10 +201,11 @@
                 msg!["CFG", name, args.join("\n")]
             },
             AddTeam(info) =>
-                msg![info.name, info.color, info.grave, info.fort,
+                msg!["ADD_TEAM", info.name, info.color, info.grave, info.fort,
                      info.voice_pack, info.flag, info.difficulty,
-                     info.hedgehogs.iter().flat_map(|h|
-                        several![&h.name[..], "\n", &h.hat[..]]).collect::<String>()],
+                     info.hedgehogs.iter()
+                        .flat_map(|h| several![&h.name[..], &h.hat[..]])
+                        .collect::<Vec<_>>().join("\n")],
             RemoveTeam(name) => msg!["REMOVE_TEAM", name],
             SetHedgehogsNumber(team, number) => msg!["HH_NUM", team, number],
             SetTeamColor(team, color) => msg!["TEAM_COLOR", team, color],