rust/hedgewars-server/src/handlers/inroom.rs
changeset 15516 b907b9071ec5
parent 15492 395be40faa51
child 15518 e705d30e0f10
--- a/rust/hedgewars-server/src/handlers/inroom.rs	Sat Nov 30 02:54:49 2019 +0100
+++ b/rust/hedgewars-server/src/handlers/inroom.rs	Tue Dec 17 18:54:17 2019 +0300
@@ -274,7 +274,8 @@
 
                 match room.game_info {
                     Some(ref info) if info.teams_in_game == 0 => {
-                        super::common::end_game(server, room_id, response)
+                        let result = server.end_game(room_id);
+                        super::common::get_end_game_result(server, room_id, result, response);
                     }
                     _ => (),
                 }
@@ -566,7 +567,8 @@
                 }
             }
             if game_ended {
-                super::common::end_game(server, room_id, response)
+                let result = server.end_game(room_id);
+                super::common::get_end_game_result(server, room_id, result, response);
             }
         }
         Rnd(v) => {