From 2aeb5b450384b216864a4453efe8ac1f798d5b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 13:18:58 +0200 Subject: [PATCH] Simplified if statement in setCurrentWall in Stargate --- cicaprojekt/Stargate.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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() {