From 13e7e640fb15d677cae60c3e91cd449d2f7c82af Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 16 Jun 2008 17:44:20 +0000 Subject: [PATCH] Fixing the tunnels: some target regions were chaotic --- src/scripts/eressea/tunnels.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripts/eressea/tunnels.lua b/src/scripts/eressea/tunnels.lua index f1cb88744..f14cec492 100644 --- a/src/scripts/eressea/tunnels.lua +++ b/src/scripts/eressea/tunnels.lua @@ -19,6 +19,12 @@ local function get_target(param) local r for r in regions() do if r:get_key(param) then + if (r:get_flag(0)) then + r:set_flag(0, false) + end + if (r.terrain=="ocean") then + r = terraform(r.x, r.y, "plain") + end targets[ntargets] = r ntargets = ntargets + 1 -- print("target: " .. tostring(r))