diff options
-rw-r--r-- | src/esieequest/model/doors/TrapDoor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/esieequest/model/doors/TrapDoor.java b/src/esieequest/model/doors/TrapDoor.java index 2db5443..ee12b55 100644 --- a/src/esieequest/model/doors/TrapDoor.java +++ b/src/esieequest/model/doors/TrapDoor.java | |||
@@ -24,8 +24,9 @@ public class TrapDoor extends Door { | |||
24 | 24 | ||
25 | @Override | 25 | @Override |
26 | public boolean cross(final Game game, final Viewable view) { | 26 | public boolean cross(final Game game, final Viewable view) { |
27 | final boolean crossed = super.cross(game, view); | ||
27 | game.getPlayer().clearRoomHistory(); | 28 | game.getPlayer().clearRoomHistory(); |
28 | return super.cross(game, view); | 29 | return crossed; |
29 | } | 30 | } |
30 | 31 | ||
31 | } | 32 | } |