diff --git a/cicaprojekt/Stargate.java b/cicaprojekt/Stargate.java index be1d0ba..bcc66b2 100644 --- a/cicaprojekt/Stargate.java +++ b/cicaprojekt/Stargate.java @@ -47,12 +47,7 @@ public class Stargate { currentWall = wall; if(direction != null) exitDirection = Direction.invert(direction); - if(wall != null) { - isSpawned = true; - } - else { - isSpawned = false; - } + isSpawned = wall != null; } public boolean isSpawned() {