Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Set hidden tile for landfill tiles" #1453

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions map_gen/shared/generate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ local function do_tile_inner(tiles, tile, pos)
end
end

local function do_landfill_hidden_tile(tiles, tile, pos)
if (tile.tile or tile) == 'landfill' and not tile.hidden_tile then
insert(tiles, {tile = 'water-shallow', position = pos})
end
end

local function do_tile(y, x, data, shape)
local pos = {x, y}

Expand Down Expand Up @@ -69,7 +63,6 @@ local function do_tile(y, x, data, shape)
else
do_tile_inner(data.tiles, tile, pos)
end
do_landfill_hidden_tile(data.hidden_tiles, tile, pos)
end

local function do_row(row, data, shape)
Expand Down Expand Up @@ -116,7 +109,6 @@ local function do_row(row, data, shape)
else
do_tile_inner(tiles, tile, pos)
end
do_landfill_hidden_tile(data.hidden_tiles, tile, pos)
end
end

Expand Down
Loading