Remove stone barrier on match start

This commit is contained in:
rubenwardy 2017-12-28 12:48:58 +00:00
parent 760b83e0ec
commit ad2750adef

View file

@ -1,7 +1,9 @@
local c_stone = minetest.get_content_id("ctf_map:ind_stone")
local c_stone_red = minetest.get_content_id("ctf_map:ind_stone_red")
local c_glass = minetest.get_content_id("ctf_map:ind_glass")
local c_glass_red = minetest.get_content_id("ctf_map:ind_glass_red")
local c_map_ignore = minetest.get_content_id("ctf_map:ignore")
local c_actual_st = minetest.get_content_id("default:stone")
local c_water = minetest.get_content_id("default:water_source")
local c_water_f = minetest.get_content_id("default:water_flowing")
local c_air = minetest.get_content_id("air")
@ -35,6 +37,8 @@ function ctf_map.remove_middle_barrier()
local vi = a:index(x, y, 0)
if data[vi] == c_glass_red then
data[vi] = c_air
elseif data[vi] == c_stone_red then
data[vi] = c_actual_st
end
end
end