From c716cfc71c93dd1beefcc772692a4319cdf9c23b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 28 Sep 2021 15:02:48 +0000 Subject: [PATCH] 1 --- server/gameserver/human.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index b63c72f..78f19aa 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -58,6 +58,7 @@ Human::Human():Creature() Human::~Human() { + int i = 0; } void Human::Initialize() @@ -235,8 +236,14 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data if (parachute != 0) { p->set_parachute(parachute); } + if (IsPlayer()) { + int i = 0; + } if (follow_target.Get()) { p->set_follow_target(follow_target.Get()->GetUniId()); +#ifdef DEBUG + a8::XPrintf("DoFollow1 %d->%d\n", {GetUniId(), follow_target.Get()->GetUniId()}); +#endif } FillBodyState(p->mutable_states()); FillBuffList(hum, p->mutable_buff_list()); @@ -3694,6 +3701,9 @@ void Human::DoFollow(int target_id) if (GetTeam()) { Human* member = GetTeam()->GetMemberByUniId(target_id); if (member && member->CanFollow(this)) { +#ifdef DEBUG + a8::XPrintf("DoFollow %d->%d\n", {GetUniId(), member->GetUniId()}); +#endif if (follow_target.Get()) { follow_target.Detach(); if (follow_target_timer_) {