1
This commit is contained in:
parent
9125634376
commit
0b5c928b8b
@ -1059,6 +1059,7 @@ void Human::FillSMGameOver(cs::SMGameOver& msg)
|
|||||||
msg.set_team_rank(GetTeam()->team_rank);
|
msg.set_team_rank(GetTeam()->team_rank);
|
||||||
msg.set_personal_rank(stats.rank);
|
msg.set_personal_rank(stats.rank);
|
||||||
if (room->IsPveRoom()) {
|
if (room->IsPveRoom()) {
|
||||||
|
stats.pve_wave = room->pve_data.GetWave() + 1;
|
||||||
msg.set_game_over(room->IsGameOver());
|
msg.set_game_over(room->IsGameOver());
|
||||||
} else {
|
} else {
|
||||||
msg.set_game_over(room->IsGameOver() || (alive_team_num == 1));
|
msg.set_game_over(room->IsGameOver() || (alive_team_num == 1));
|
||||||
@ -1943,6 +1944,11 @@ void Human::SendGameOver()
|
|||||||
cs::SMGameOver msg;
|
cs::SMGameOver msg;
|
||||||
FillSMGameOver(msg);
|
FillSMGameOver(msg);
|
||||||
SendNotifyMsg(msg);
|
SendNotifyMsg(msg);
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (!f8::IsTestEnv()) {
|
||||||
|
a8::XPrintf("gameOver %s\n", {f8::PbToJson(&msg)});
|
||||||
|
}
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
if (!sending_battlereport_) {
|
if (!sending_battlereport_) {
|
||||||
sending_battlereport_ = true;
|
sending_battlereport_ = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user