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;