From b9c5000bab4632654ae3ec335257ce5175b5b406 Mon Sep 17 00:00:00 2001 From: Oarcinae Date: Thu, 1 Feb 2018 13:03:11 -0500 Subject: [PATCH] Trying to fix desyncs that I think are related to my regrowth and RSO changes. --- config.lua | 2 +- locale/rso/rso_control.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index 29d7d1e..74a5b9a 100644 --- a/config.lua +++ b/config.lua @@ -92,7 +92,7 @@ ENABLE_POWER_ARMOR_QUICK_START = false ENABLE_SHARED_TEAM_VISION = true -- 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. -- It removes bases for players that join and leave the game quickly. -- This can also be used without enabling regrowth. diff --git a/locale/rso/rso_control.lua b/locale/rso/rso_control.lua index b47d4d5..bc12c44 100644 --- a/locale/rso/rso_control.lua +++ b/locale/rso/rso_control.lua @@ -1251,7 +1251,7 @@ local function roll_region(c_x, c_y) global.regions[r_x][r_y]={} r_data = global.regions[r_x][r_y] if (regrow_rso and not deterministic) then - global.seed = math.random(0,4294967295) + global.seed = global.seed + 1 end rng = rng_for_reg_pos{x=r_x,y=r_y}