From e2692dfeacc241ccc4c1590b122699320c92e92f Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 17 May 2014 19:58:00 +0200 Subject: Fix trapdoor early history clearing --- src/esieequest/model/doors/TrapDoor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { @Override public boolean cross(final Game game, final Viewable view) { + final boolean crossed = super.cross(game, view); game.getPlayer().clearRoomHistory(); - return super.cross(game, view); + return crossed; } } -- cgit v1.2.3