Skip to content

Commit

Permalink
fix: isSightClear wrong check for block projectile (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
conde2 authored Jan 12, 2024
1 parent c01219b commit 4ce136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ bool Map::isSightClear(const Position& fromPos, const Position& toPos)
}

auto tile = getTile(Position(start.x, start.y, start.z));
if (tile && tile->isLookPossible()) {
if (tile && !tile->isLookPossible()) {
return false;
}
}
Expand Down

0 comments on commit 4ce136c

Please sign in to comment.