Simplified if statement in setCurrentWall in Stargate

This commit is contained in:
Bokros Bálint 2016-05-14 13:18:58 +02:00
parent 57543ff23c
commit 2aeb5b4503

View File

@ -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() {