Skip to content

Commit b38ee98

Browse files
committed
remove duplicate checks pt1
1 parent 309918b commit b38ee98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13248,7 +13248,7 @@ void Unit::SetInFront(WorldObject const* target)
1324813248
void Unit::SetFacingTo(float ori, bool force/* = true*/, uint32 id/* = EVENT_FACE*/)
1324913249
{
1325013250
// do not face when already moving
13251-
if (!force && (!IsStopped() || !movespline->Finalized() || GetMotionMaster()->GetCurrentMovementGeneratorPriority() == MOTION_PRIORITY_HIGHEST))
13251+
if (!force && (!IsStopped() || !movespline->Finalized()))
1325213252
return;
1325313253

1325413254
GetMotionMaster()->MoveFace(ori, id);
@@ -13257,7 +13257,7 @@ void Unit::SetFacingTo(float ori, bool force/* = true*/, uint32 id/* = EVENT_FAC
1325713257
void Unit::SetFacingToObject(WorldObject const* object, bool force/* = true*/, uint32 id/* = EVENT_FACE*/)
1325813258
{
1325913259
// do not face when already moving
13260-
if (!force && (!IsStopped() || !movespline->Finalized() || GetMotionMaster()->GetCurrentMovementGeneratorPriority() == MOTION_PRIORITY_HIGHEST))
13260+
if (!force && (!IsStopped() || !movespline->Finalized()))
1326113261
return;
1326213262

1326313263
GetMotionMaster()->MoveFace(object, id);

0 commit comments

Comments
 (0)