This commit is contained in:
aozhiwei 2021-09-15 02:25:01 +00:00
parent 421e34abf4
commit 980a8593e3

View File

@ -347,14 +347,15 @@ void Buff::ProcSprint()
owner->SetMoveDir(owner->context_dir); owner->SetMoveDir(owner->context_dir);
owner->SetAttackDir(owner->context_dir); owner->SetAttackDir(owner->context_dir);
owner->SetDisableMoveDirTimes(old_times); owner->SetDisableMoveDirTimes(old_times);
#ifdef DEBUG1 #ifdef DEBUG
{ {
owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d", owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%d",
{ {
owner->GetMoveDir().x, owner->GetMoveDir().x,
owner->GetMoveDir().y, owner->GetMoveDir().y,
owner->GetAttackDir().x, owner->GetAttackDir().x,
owner->GetAttackDir().y, owner->GetAttackDir().y,
owner->GetSpeed()
})); }));
owner->room->xtimer.AddRepeatTimerAndAttach owner->room->xtimer.AddRepeatTimerAndAttach
( (
@ -364,12 +365,13 @@ void Buff::ProcSprint()
[] (const a8::XParams& param) [] (const a8::XParams& param)
{ {
Human* hum = (Human*)param.sender.GetUserData(); Human* hum = (Human*)param.sender.GetUserData();
hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d", hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%d",
{ {
hum->GetMoveDir().x, hum->GetMoveDir().x,
hum->GetMoveDir().y, hum->GetMoveDir().y,
hum->GetAttackDir().x, hum->GetAttackDir().x,
hum->GetAttackDir().y, hum->GetAttackDir().y,
hum->GetSpeed()
})); }));
}, },
&xtimer_attacher.timer_list_ &xtimer_attacher.timer_list_