1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-25 21:29:03 +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 Version: 0.18.13
Date: 16. 4 2020 Date: 16. 4 2020

View File

@ -872,28 +872,30 @@ local function onSurfaceTileChange(event)
if (surface.index == surfaceIndex) then if (surface.index == surfaceIndex) then
local chunks = {} local chunks = {}
local tiles = event.tiles local tiles = event.tiles
if event.tile and ((event.tile.name == "landfill") or sFind(event.tile.name, "water")) then if event.tile then
for i=1,#tiles do if ((event.tile.name == "landfill") or sFind(event.tile.name, "water")) then
local position = tiles[i].position for i=1,#tiles do
local chunk = getChunkByPosition(map, position) local position = tiles[i].position
local chunk = getChunkByPosition(map, position)
if (chunk ~= -1) then if (chunk ~= -1) then
map.chunkToPassScan[chunk] = true map.chunkToPassScan[chunk] = true
else else
local x,y = positionToChunkXY(position) local x,y = positionToChunkXY(position)
local addMe = true local addMe = true
for ci=1,#chunks do for ci=1,#chunks do
local c = chunks[ci] local c = chunks[ci]
if (c.x == x) and (c.y == y) then if (c.x == x) and (c.y == y) then
addMe = false addMe = false
break 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
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
end end

View File

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