Skip to content

Commit

Permalink
[Bug Fix] Fix improper condition in Water LOS checks (#3426)
Browse files Browse the repository at this point in the history
# Notes
- Oversight on my part, should've been `==`, not `&&`.
  • Loading branch information
Kinglykrab authored Jun 19, 2023
1 parent 85054fe commit 9312261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zone/client_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ bool Client::CheckWaterAutoFireLoS(Mob* m)
}

return (
zone->watermap->InLiquid(GetPosition()) &&
zone->watermap->InLiquid(GetPosition()) ==
zone->watermap->InLiquid(m->GetPosition())
);
}
2 changes: 1 addition & 1 deletion zone/spells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7111,7 +7111,7 @@ bool Mob::CheckWaterLoS(Mob* m)
}

return (
zone->watermap->InLiquid(GetPosition()) &&
zone->watermap->InLiquid(GetPosition()) ==
zone->watermap->InLiquid(m->GetPosition())
);
}

0 comments on commit 9312261

Please sign in to comment.