diff --git a/server/gameserver/moveableentity.cc b/server/gameserver/moveableentity.cc index 1ae22fa6..cc1f0a1f 100644 --- a/server/gameserver/moveableentity.cc +++ b/server/gameserver/moveableentity.cc @@ -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()