Skip to content

Commit

Permalink
Update monster.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Apr 18, 2024
1 parent 1650f31 commit 4137fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3738,7 +3738,7 @@ void M_ClearSquares(const Monster &monster)

void M_GetKnockback(Monster &monster, WorldTilePosition attackerStartPos)
{
auto dir = GetDirection(attackerStartPos, monster.position.future);
auto dir = GetDirection(attackerStartPos, monster.position.tile);
if (!IsRelativeMoveOK(monster, monster.position.old, dir)) {
return;
}
Expand Down

0 comments on commit 4137fe9

Please sign in to comment.