Skip to content

Commit

Permalink
Fix set facing for objects leaving dirty movement flags behind
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarabol authored and killerwife committed Dec 17, 2023
1 parent a498dab commit 40962a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4647,7 +4647,7 @@ void Unit::SetFacingTo(float ori)
init.Launch();
// orientation change is in-place
UpdateSplinePosition();
movespline->_Finalize();
DisableSpline();
}

void Unit::SetFacingToObject(WorldObject* object)
Expand All @@ -4661,7 +4661,7 @@ void Unit::SetFacingToObject(WorldObject* object)
init.Launch();
// orientation change is in-place
UpdateSplinePosition();
movespline->_Finalize();
DisableSpline();
}

bool Unit::isInAccessablePlaceFor(Unit const* unit) const
Expand Down

0 comments on commit 40962a6

Please sign in to comment.