Fixing the tunnels: some target regions were chaotic

This commit is contained in:
Enno Rehling 2008-06-16 17:44:20 +00:00
parent 328bf5a623
commit 13e7e640fb
1 changed files with 6 additions and 0 deletions

View File

@ -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))