This commit is contained in:
aozhiwei 2022-09-28 15:38:22 +08:00
parent 63d92ce2d7
commit 5db7ceb9e8

View File

@ -94,6 +94,19 @@ void MoveableEntity::SetAttackDir(const a8::Vec2& attack_dir)
{
attack_dir_ = attack_dir;
++chg_attack_dir_times_;
#ifdef DEBUG
if (IsCreature(room) && ((Creature*)this)->IsPlayer()) {
Creature* c = (Creature*)this;
c->SendDebugMsg(
a8::Format("SetAttackDir:%f,%f angle:%f\n",
{
attack_dir.x,
attack_dir.y,
GetAttackDirRotate()
})
);
}
#endif
}
float MoveableEntity::GetAttackDirRotate()