--- 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) => {