From 4cdcc694ac3e077712622a6470fa2fe85183a308 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 4 Jun 2019 13:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8A=80=E8=83=BDtimer?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 183e1ad..3130da2 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -54,6 +54,7 @@ Human::~Human() void Human::Initialize() { Entity::Initialize(); + skill_xtimer_attacher_.xtimer = &room->xtimer; RecalcSelfCollider(); volume_ = meta->volume; observers_.insert(this); @@ -1783,7 +1784,7 @@ void Human::GenBattleReportData(a8::MutableXObject* params) } else { params->SetVal("alive_time", dead_frameno * 1000.0f / SERVER_FRAME_RATE); } - params->SetVal("team_status", team_id != 0); + params->SetVal("team_status", team_members && team_members->size() > 1 ? 1 : 0); params->SetVal("room_uuid", room->room_uuid); int snipe_kill = 0;