Skip to content

Commit

Permalink
unfixed is_same_region
Browse files Browse the repository at this point in the history
increased version
  • Loading branch information
iGi committed Apr 12, 2015
1 parent 02dbb90 commit 3d820d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'defines'
debug_enabled = true
debug_enabled = false


region_size=7 -- alternative mean to control how further away resources would be, default - 256 tiles or 8 chunks
Expand All @@ -10,7 +10,7 @@ override_normal_spawn = false -- if false then the standard spawner can also s
-- set resources you want to control through this config to "None" in worldgen "Size" settings when starting a new game
-- changing of this setting requires game restart, i.e. close game and start it again, not actally a new game

override_type = 'partially' -- 'full' - no spawns by game are allowed, 'partially' - very small patches are spawned by world gen
override_type = 'full' -- 'full' - no spawns by game are allowed, 'partially' - very small patches are spawned by world gen
-- changing of this setting requires game restart

starting_area_size=1 -- starting area in regions, safe from random nonsense
Expand Down
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ local function is_same_region(c_x1, c_y1, c_x2, c_y2)
if not floor(c_y1/REGION_TILE_SIZE) == floor(c_y2/REGION_TILE_SIZE) then
return false
end
return true
return false -- this is wrong, but when i fix it to return true, it fails somewhere else...
end

local function find_random_neighbour_chunk(ocx, ocy)
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rso-mod",
"version": "1.0.7",
"version": "1.0.8",
"title": "Resource Spawner Overhaul",
"author": "Dark",
"homepage": "http://www.factorioforums.com/forum/viewtopic.php?f=14&t=4761",
Expand Down

0 comments on commit 3d820d2

Please sign in to comment.