1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

see changelog

This commit is contained in:
Aaron Veden 2020-05-25 10:27:17 -07:00
parent 020bb1a747
commit e671966c59
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
3 changed files with 30 additions and 22 deletions

View File

@ -1,3 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.18.14
Date: 25. 4 2020
Bugfixes:
- Tile placement fixed
---------------------------------------------------------------------------------------------------
Version: 0.18.13
Date: 16. 4 2020

View File

@ -872,31 +872,33 @@ local function onSurfaceTileChange(event)
if (surface.index == surfaceIndex) then
local chunks = {}
local tiles = event.tiles
if event.tile and ((event.tile.name == "landfill") or sFind(event.tile.name, "water")) then
for i=1,#tiles do
local position = tiles[i].position
local chunk = getChunkByPosition(map, position)
if event.tile then
if ((event.tile.name == "landfill") or sFind(event.tile.name, "water")) then
for i=1,#tiles do
local position = tiles[i].position
local chunk = getChunkByPosition(map, position)
if (chunk ~= -1) then
map.chunkToPassScan[chunk] = true
else
local x,y = positionToChunkXY(position)
local addMe = true
for ci=1,#chunks do
local c = chunks[ci]
if (c.x == x) and (c.y == y) then
addMe = false
break
if (chunk ~= -1) then
map.chunkToPassScan[chunk] = true
else
local x,y = positionToChunkXY(position)
local addMe = true
for ci=1,#chunks do
local c = chunks[ci]
if (c.x == x) and (c.y == y) then
addMe = false
break
end
end
if addMe then
local chunkXY = {x=x,y=y}
chunks[#chunks+1] = chunkXY
onChunkGenerated({area = { left_top = chunkXY },
surface = surface})
end
end
if addMe then
local chunkXY = {x=x,y=y}
chunks[#chunks+1] = chunkXY
onChunkGenerated({area = { left_top = chunkXY },
surface = surface})
end
end
end
end
else
for i=1,#tiles do
local tile = tiles[i]

View File

@ -1,7 +1,7 @@
{
"name" : "Rampant",
"factorio_version" : "0.18",
"version" : "0.18.13",
"version" : "0.18.14",
"title" : "Rampant",
"author" : "Veden",
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",