send team colors on round end
authoralfadur
Sun, 12 Apr 2020 00:26:37 +0300
changeset 15554 36687bc9d5c1
parent 15553 852682c2003f
child 15555 107170c05bac
send team colors on round end
rust/hedgewars-server/src/handlers/common.rs
--- a/rust/hedgewars-server/src/handlers/common.rs	Sun Apr 12 00:02:11 2020 +0300
+++ b/rust/hedgewars-server/src/handlers/common.rs	Sun Apr 12 00:26:37 2020 +0300
@@ -617,6 +617,10 @@
             HedgehogsNumber(team.name.clone(), team.hedgehogs_number)
                 .send_to_destination(midgame_destination.clone()),
         );
+        response.add(
+            TeamColor(team.name.clone(), team.color)
+                .send_to_destination(midgame_destination.clone()),
+        );
     }
     super::common::get_active_room_config(room, midgame_destination.clone(), response);