From dd6f13b6b3e006ae233f143edf1d1627382211f7 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 19 Jun 2017 15:47:42 -0400 Subject: [PATCH] Disables persistence saving in sandbox mode --- code/controllers/subsystem/ticker.dm | 3 ++- code/game/gamemodes/game_mode.dm | 1 + code/game/gamemodes/sandbox/sandbox.dm | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index a74678de868..c8bc77f285d 100755 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -590,7 +590,8 @@ SUBSYSTEM_DEF(ticker) CHECK_TICK //Collects persistence features - SSpersistence.CollectData() + if(mode.allow_persistence_save) + SSpersistence.CollectData() //stop collecting feedback during grifftime SSblackbox.Seal() diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 6ea655df224..c37ce1bcb9c 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -44,6 +44,7 @@ var/list/datum/station_goal/station_goals = list() + var/allow_persistence_save = TRUE /datum/game_mode/proc/announce() //Shows the gamemode's name and a fast description. to_chat(world, "The gamemode is: [name]!") diff --git a/code/game/gamemodes/sandbox/sandbox.dm b/code/game/gamemodes/sandbox/sandbox.dm index 4aa04cfdb7a..7567fbf8f15 100644 --- a/code/game/gamemodes/sandbox/sandbox.dm +++ b/code/game/gamemodes/sandbox/sandbox.dm @@ -5,6 +5,8 @@ announce_span = "info" announce_text = "Build your own station... or just shoot each other!" + + allow_persistence_save = FALSE /datum/game_mode/sandbox/pre_setup() for(var/mob/M in GLOB.player_list)