aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-17 19:58:00 +0200
committerPacien TRAN-GIRARD2014-05-17 19:58:00 +0200
commite2692dfeacc241ccc4c1590b122699320c92e92f (patch)
tree081008b7babc0ebc871eb9a36473e21cf9542331
parentb416d4d7d8a2b42f7a0e8b105a3b6ce14d2a50ae (diff)
downloadesieequest-e2692dfeacc241ccc4c1590b122699320c92e92f.tar.gz
Fix trapdoor early history clearing
-rw-r--r--src/esieequest/model/doors/TrapDoor.java3
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}