1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-12 10:13:58 +02:00

Trying to fix desyncs that I think are related to my regrowth and RSO changes.

This commit is contained in:
Oarcinae 2018-02-01 13:03:11 -05:00
parent cda9895836
commit b9c5000bab
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ ENABLE_POWER_ARMOR_QUICK_START = false
ENABLE_SHARED_TEAM_VISION = true ENABLE_SHARED_TEAM_VISION = true
-- Enable map regrowth, see regrowth_map.lua for more info. -- Enable map regrowth, see regrowth_map.lua for more info.
ENABLE_REGROWTH = false ENABLE_REGROWTH = true
-- If you have regrowth enabled, this should also be enabled. -- If you have regrowth enabled, this should also be enabled.
-- It removes bases for players that join and leave the game quickly. -- It removes bases for players that join and leave the game quickly.
-- This can also be used without enabling regrowth. -- This can also be used without enabling regrowth.

View File

@ -1251,7 +1251,7 @@ local function roll_region(c_x, c_y)
global.regions[r_x][r_y]={} global.regions[r_x][r_y]={}
r_data = global.regions[r_x][r_y] r_data = global.regions[r_x][r_y]
if (regrow_rso and not deterministic) then if (regrow_rso and not deterministic) then
global.seed = math.random(0,4294967295) global.seed = global.seed + 1
end end
rng = rng_for_reg_pos{x=r_x,y=r_y} rng = rng_for_reg_pos{x=r_x,y=r_y}