1
This commit is contained in:
parent
421e34abf4
commit
980a8593e3
@ -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,13 +365,14 @@ 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_
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user