This commit is contained in:
aozhiwei 2023-01-04 11:02:10 +08:00
parent c9b06f80b2
commit e11a776f01

View File

@ -42,16 +42,19 @@ 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:%f,%f,%f attack_dir:%f,%f,%f speed:%d", a8::XPrintf("%f\n",
{ {
owner->GetMoveDir().x, a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
owner->GetMoveDir().y, {
owner->GetMoveDir().z, owner->GetMoveDir().x,
owner->GetAttackDir().x, owner->GetMoveDir().y,
owner->GetAttackDir().y, owner->GetMoveDir().z,
owner->GetAttackDir().z, owner->GetAttackDir().x,
owner->GetSpeed() owner->GetAttackDir().y,
})); owner->GetAttackDir().z,
owner->GetSpeed()
})
});
owner->room->xtimer.SetIntervalEx owner->room->xtimer.SetIntervalEx
( (
2, 2,
@ -59,16 +62,19 @@ void SprintBuff::SprintMove()
{ {
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:%f,%f,%f attack_dir:%f,%f,%f speed:%d", a8::XPrintf("%s\n",
{ {
hum->GetMoveDir().x, a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
hum->GetMoveDir().y, {
hum->GetMoveDir().z, hum->GetMoveDir().x,
hum->GetAttackDir().x, hum->GetMoveDir().y,
hum->GetAttackDir().y, hum->GetMoveDir().z,
hum->GetAttackDir().z, hum->GetAttackDir().x,
hum->GetSpeed() hum->GetAttackDir().y,
})); hum->GetAttackDir().z,
hum->GetSpeed()
})
});
} }
}, },
&xtimer_attacher &xtimer_attacher