mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Bytter en == med .equals()
This commit is contained in:
parent
f29121619a
commit
fcbbc83da6
@ -907,7 +907,7 @@ public class Board {
|
|||||||
newDirection = laserDirection;
|
newDirection = laserDirection;
|
||||||
}
|
}
|
||||||
//If using the existing direction and the beams are perpendicular, the direction needs to be rotated
|
//If using the existing direction and the beams are perpendicular, the direction needs to be rotated
|
||||||
if (newDirection == existingDirection &&
|
if (newDirection.equals(existingDirection) &&
|
||||||
Direction.arePerpendicular(laserDirection, existingDirection)) {
|
Direction.arePerpendicular(laserDirection, existingDirection)) {
|
||||||
newDirection = Direction.getLeftRotatedDirection(newDirection);
|
newDirection = Direction.getLeftRotatedDirection(newDirection);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user