添加技能timer初始化

This commit is contained in:
aozhiwei 2019-06-04 13:50:22 +08:00
parent bc5b1ca1eb
commit 4cdcc694ac

View File

@ -54,6 +54,7 @@ Human::~Human()
void Human::Initialize() void Human::Initialize()
{ {
Entity::Initialize(); Entity::Initialize();
skill_xtimer_attacher_.xtimer = &room->xtimer;
RecalcSelfCollider(); RecalcSelfCollider();
volume_ = meta->volume; volume_ = meta->volume;
observers_.insert(this); observers_.insert(this);
@ -1783,7 +1784,7 @@ void Human::GenBattleReportData(a8::MutableXObject* params)
} else { } else {
params->SetVal("alive_time", dead_frameno * 1000.0f / SERVER_FRAME_RATE); 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); params->SetVal("room_uuid", room->room_uuid);
int snipe_kill = 0; int snipe_kill = 0;