This commit is contained in:
aozhiwei 2023-11-02 11:45:20 +08:00
parent 888c34066e
commit 6e2c23f274

View File

@ -44,9 +44,9 @@ void SprintBuff::SprintMove()
owner->SetDisableMoveDirTimes(old_times); owner->SetDisableMoveDirTimes(old_times);
owner->IncDisableMoveDirTimes(); owner->IncDisableMoveDirTimes();
#ifdef DEBUG #ifdef DEBUG
a8::XPrintf("%f\n", a8::XPrintf("%s\n",
{ {
a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d", a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d disable_move_dir:%d",
{ {
owner->GetMoveDir().x, owner->GetMoveDir().x,
owner->GetMoveDir().y, owner->GetMoveDir().y,
@ -54,7 +54,8 @@ void SprintBuff::SprintMove()
owner->GetAttackDir().x, owner->GetAttackDir().x,
owner->GetAttackDir().y, owner->GetAttackDir().y,
owner->GetAttackDir().z, owner->GetAttackDir().z,
owner->GetSpeed() owner->GetSpeed(),
owner->GetDisableMoveDirTimes(),
}) })
}); });
owner->room->xtimer.SetIntervalEx owner->room->xtimer.SetIntervalEx
@ -65,7 +66,7 @@ void SprintBuff::SprintMove()
if (a8::TIMER_EXEC_EVENT == event) { if (a8::TIMER_EXEC_EVENT == event) {
a8::XPrintf("%s\n", a8::XPrintf("%s\n",
{ {
a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d", a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d disable_move_dir:%d",
{ {
owner->GetMoveDir().x, owner->GetMoveDir().x,
owner->GetMoveDir().y, owner->GetMoveDir().y,
@ -73,7 +74,8 @@ void SprintBuff::SprintMove()
owner->GetAttackDir().x, owner->GetAttackDir().x,
owner->GetAttackDir().y, owner->GetAttackDir().y,
owner->GetAttackDir().z, owner->GetAttackDir().z,
owner->GetSpeed() owner->GetSpeed(),
owner->GetDisableMoveDirTimes(),
}) })
}); });
} }