1
This commit is contained in:
parent
c9b06f80b2
commit
e11a776f01
@ -42,7 +42,9 @@ void SprintBuff::SprintMove()
|
||||
owner->SetAttackDir(owner->context_dir);
|
||||
owner->SetDisableMoveDirTimes(old_times);
|
||||
#ifdef DEBUG
|
||||
owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
||||
a8::XPrintf("%f\n",
|
||||
{
|
||||
a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
||||
{
|
||||
owner->GetMoveDir().x,
|
||||
owner->GetMoveDir().y,
|
||||
@ -51,7 +53,8 @@ void SprintBuff::SprintMove()
|
||||
owner->GetAttackDir().y,
|
||||
owner->GetAttackDir().z,
|
||||
owner->GetSpeed()
|
||||
}));
|
||||
})
|
||||
});
|
||||
owner->room->xtimer.SetIntervalEx
|
||||
(
|
||||
2,
|
||||
@ -59,7 +62,9 @@ void SprintBuff::SprintMove()
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
Human* hum = owner->AsHuman();
|
||||
hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
||||
a8::XPrintf("%s\n",
|
||||
{
|
||||
a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
||||
{
|
||||
hum->GetMoveDir().x,
|
||||
hum->GetMoveDir().y,
|
||||
@ -68,7 +73,8 @@ void SprintBuff::SprintMove()
|
||||
hum->GetAttackDir().y,
|
||||
hum->GetAttackDir().z,
|
||||
hum->GetSpeed()
|
||||
}));
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
&xtimer_attacher
|
||||
|
Loading…
x
Reference in New Issue
Block a user