From 10f768becf7f722f74b029af693d2d55a9dc96e6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 26 Jun 2019 11:14:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=84=E9=98=9F=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 3551e27..015d82c 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -587,6 +587,9 @@ void Human::FillSMGameOver(cs::SMGameOver& msg) break; } } + if (!dead && GetAliveTeamNum() == 1) { + rank = 1; + } msg.set_team_id(team_id); msg.set_team_rank(rank); @@ -2029,7 +2032,7 @@ void Human::InternalSendGameOver() on_error, url.c_str(), *params, - rand() + room->room_uuid ); delete params; sending_gameover_ = true;