mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 15:19:35 +01:00
Bytter en == med .equals()
This commit is contained in:
parent
f29121619a
commit
fcbbc83da6
@ -907,7 +907,7 @@ public class Board {
|
||||
newDirection = laserDirection;
|
||||
}
|
||||
//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)) {
|
||||
newDirection = Direction.getLeftRotatedDirection(newDirection);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user