mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-18 22:53:16 +00:00
Simplify an expression
This commit is contained in:
parent
168bafd7df
commit
8b599a46a5
1 changed files with 2 additions and 2 deletions
|
@ -347,8 +347,8 @@ impl WorldManager {
|
|||
let (x, y) = my_pos;
|
||||
let (cx, cy) = cam_pos;
|
||||
if (x - cx).abs() > 2 || (y - cy).abs() > 2 {
|
||||
!(chx <= x + 2 && chx >= x - 2 && chy <= y + 2 && chy >= y - 2)
|
||||
&& !(chx <= cx + 2 && chx >= cx - 2 && chy <= cy + 2 && chy >= cy - 2)
|
||||
!(chx <= x + 2 && chx >= x - 2 && chy <= y + 2 && chy >= y - 2
|
||||
|| chx <= cx + 2 && chx >= cx - 2 && chy <= cy + 2 && chy >= cy - 2)
|
||||
} else if is_notplayer {
|
||||
!(chx <= x + 2 && chx >= x - 2 && chy <= y + 2 && chy >= y - 2)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue