From 5eca01beb86fe419ac5f79c9686fac5c86b609ec Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 26 Feb 2010 20:29:06 +0000
Subject: [PATCH] fixed doors that can be passed through

git-svn-id: http://svn.net-core.org/repos/t-engine4@364 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Grid.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/game/modules/tome/class/Grid.lua b/game/modules/tome/class/Grid.lua
index 5dc05e03f1..477157aca1 100644
--- a/game/modules/tome/class/Grid.lua
+++ b/game/modules/tome/class/Grid.lua
@@ -12,6 +12,8 @@ function _M:block_move(x, y, e, act)
 	if self.door_opened and act then
 		game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list.DOOR_OPEN)
 		return true
+	elseif self.door_opened then
+		return true
 	end
 	return false
 end
-- 
GitLab