From 3d820d279b382ab0d4090bf25b017197a2222f4e Mon Sep 17 00:00:00 2001 From: iGi Date: Sun, 12 Apr 2015 15:20:46 +0200 Subject: [PATCH] unfixed is_same_region increased version --- config.lua | 4 ++-- control.lua | 2 +- info.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.lua b/config.lua index 51795e5..778deaf 100644 --- a/config.lua +++ b/config.lua @@ -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 @@ -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 diff --git a/control.lua b/control.lua index 6ecae19..d8a235d 100644 --- a/control.lua +++ b/control.lua @@ -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) diff --git a/info.json b/info.json index dc95e39..62284c6 100644 --- a/info.json +++ b/info.json @@ -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",