1
This commit is contained in:
parent
09f0a373ee
commit
e838f29fc0
@ -42,35 +42,33 @@ void SprintBuff::SprintMove()
|
|||||||
owner->SetAttackDir(owner->context_dir);
|
owner->SetAttackDir(owner->context_dir);
|
||||||
owner->SetDisableMoveDirTimes(old_times);
|
owner->SetDisableMoveDirTimes(old_times);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
{
|
owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%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->GetSpeed()
|
}));
|
||||||
}));
|
owner->room->xtimer.SetIntervalEx
|
||||||
owner->room->xtimer.SetIntervalEx
|
(
|
||||||
(
|
2,
|
||||||
2,
|
[this] (int event, const a8::Args* args)
|
||||||
[this] (int event, const a8::Args* args)
|
{
|
||||||
{
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
Human* hum = owner->AsHuman();
|
||||||
Human* hum = owner->AsHuman();
|
hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%d,%d attack_dir:%d,%d speed:%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()
|
||||||
hum->GetSpeed()
|
}));
|
||||||
}));
|
}
|
||||||
}
|
},
|
||||||
},
|
&xtimer_attacher
|
||||||
&xtimer_attacher
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user