Skip to content

Commit

Permalink
Update player.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Oct 10, 2024
1 parent 1c91c36 commit 5ea5983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ WorldTilePosition GetTargetMonsterPosition(const Monster &monster, const Player

if (monster.isWalking()) {
auto progress = monster.animInfo.getAnimationProgress();
if (progress <= 64) {
if (progress <= AnimationInfo::baseValueFraction / 2) {
targetPosition = monster.position.tile;
}
}
Expand All @@ -82,7 +82,7 @@ WorldTilePosition GetTargetPlayerPosition(const Player &targetPlayer, const Play

if (targetPlayer.isWalking()) {
auto progress = targetPlayer.AnimInfo.getAnimationProgress();
if (progress <= 64) {
if (progress <= AnimationInfo::baseValueFraction / 2) {
targetPosition = targetPlayer.position.tile;
}
}
Expand Down

0 comments on commit 5ea5983

Please sign in to comment.