From e13f2eef2ac955d2493b2d49db6e869043e68082 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 9 Jan 2018 10:21:36 -0500 Subject: [PATCH] Removes usage of set background --- code/__HELPERS/game.dm | 3 --- code/_compile_options.dm | 3 --- code/controllers/subsystem/garbage.dm | 2 -- code/game/machinery/porta_turret/portable_turret.dm | 2 -- code/modules/mob/living/brain/life.dm | 2 -- code/modules/mob/living/carbon/alien/larva/life.dm | 2 -- code/modules/mob/living/carbon/human/interactive.dm | 2 -- code/modules/mob/living/carbon/human/life.dm | 2 -- code/modules/mob/living/carbon/life.dm | 1 - code/modules/mob/living/carbon/monkey/life.dm | 1 - code/modules/mob/living/life.dm | 1 - code/modules/mob/living/silicon/ai/freelook/chunk.dm | 3 --- code/modules/mob/living/silicon/robot/life.dm | 2 -- code/modules/mob/living/simple_animal/bot/bot.dm | 1 - code/modules/mob/living/simple_animal/slime/life.dm | 2 -- code/modules/ninja/suit/suit_process.dm | 2 -- code/modules/power/singularity/narsie.dm | 1 - code/modules/power/singularity/singularity.dm | 1 - code/modules/procedural_mapping/mapGenerator.dm | 2 -- code/modules/procedural_mapping/mapGenerators/cellular.dm | 2 -- 20 files changed, 37 deletions(-) diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index 0e1c1c39799..247cb41a2dd 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -239,9 +239,6 @@ processing_list += A.contents /proc/get_mobs_in_radio_ranges(list/obj/item/device/radio/radios) - - set background = BACKGROUND_ENABLED - . = list() // Returns a list of mobs who can hear any of the radios given in @radios for(var/obj/item/device/radio/R in radios) diff --git a/code/_compile_options.dm b/code/_compile_options.dm index a0b13211f60..876f099874a 100644 --- a/code/_compile_options.dm +++ b/code/_compile_options.dm @@ -19,9 +19,6 @@ 2 for preloading absolutely everything; */ -#define BACKGROUND_ENABLED 0 // The default value for all uses of set background. Set background can cause gradual lag and is recommended you only turn this on if necessary. - // 1 will enable set background. 0 will disable set background. - //ADMIN STUFF #define ROUNDSTART_LOGOUT_REPORT_TIME 6000 //Amount of time (in deciseconds) after the rounds starts, that the player disconnect report is issued. diff --git a/code/controllers/subsystem/garbage.dm b/code/controllers/subsystem/garbage.dm index 4faf234ffd7..e83d05a28d2 100644 --- a/code/controllers/subsystem/garbage.dm +++ b/code/controllers/subsystem/garbage.dm @@ -332,7 +332,6 @@ SUBSYSTEM_DEF(garbage) /datum/verb/find_refs() set category = "Debug" set name = "Find References" - set background = 1 set src in world find_references(FALSE) @@ -385,7 +384,6 @@ SUBSYSTEM_DEF(garbage) /datum/verb/qdel_then_find_references() set category = "Debug" set name = "qdel() then Find References" - set background = 1 set src in world qdel(src) diff --git a/code/game/machinery/porta_turret/portable_turret.dm b/code/game/machinery/porta_turret/portable_turret.dm index 670ea2bccf4..f525581cee0 100644 --- a/code/game/machinery/porta_turret/portable_turret.dm +++ b/code/game/machinery/porta_turret/portable_turret.dm @@ -335,8 +335,6 @@ /obj/machinery/porta_turret/process() //the main machinery process - set background = BACKGROUND_ENABLED - if(cover == null && anchored) //if it has no cover and is anchored if(stat & BROKEN) //if the turret is borked qdel(cover) //delete its cover, assuming it has one. Workaround for a pesky little bug diff --git a/code/modules/mob/living/brain/life.dm b/code/modules/mob/living/brain/life.dm index c8df16a1cfc..11664722b24 100644 --- a/code/modules/mob/living/brain/life.dm +++ b/code/modules/mob/living/brain/life.dm @@ -1,8 +1,6 @@ /mob/living/brain/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED - if (notransform) return if(!loc) diff --git a/code/modules/mob/living/carbon/alien/larva/life.dm b/code/modules/mob/living/carbon/alien/larva/life.dm index e0fce5614c7..8a82b27e724 100644 --- a/code/modules/mob/living/carbon/alien/larva/life.dm +++ b/code/modules/mob/living/carbon/alien/larva/life.dm @@ -2,8 +2,6 @@ /mob/living/carbon/alien/larva/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED - if (notransform) return if(..()) //not dead diff --git a/code/modules/mob/living/carbon/human/interactive.dm b/code/modules/mob/living/carbon/human/interactive.dm index 426bc399071..52f9119d66c 100644 --- a/code/modules/mob/living/carbon/human/interactive.dm +++ b/code/modules/mob/living/carbon/human/interactive.dm @@ -753,7 +753,6 @@ timeout++ /mob/living/carbon/human/interactive/proc/getGoodPath(target,var/maxtries=512) - set background = 1 var/turf/end = get_turf(target) var/turf/current = get_turf(src) @@ -779,7 +778,6 @@ return path /mob/living/carbon/human/interactive/proc/walk2derpless(target) - set background = 1 if(!target) return 0 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 83e092b860d..daffd0fbe90 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -22,8 +22,6 @@ /mob/living/carbon/human/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED - if (notransform) return diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index 9777c7d4b9a..1b78a17f021 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -1,6 +1,5 @@ /mob/living/carbon/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED if(notransform) return diff --git a/code/modules/mob/living/carbon/monkey/life.dm b/code/modules/mob/living/carbon/monkey/life.dm index ca78e165c29..4fc27a73384 100644 --- a/code/modules/mob/living/carbon/monkey/life.dm +++ b/code/modules/mob/living/carbon/monkey/life.dm @@ -5,7 +5,6 @@ /mob/living/carbon/monkey/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED if (notransform) return diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm index 152bcf007df..ca319b620be 100644 --- a/code/modules/mob/living/life.dm +++ b/code/modules/mob/living/life.dm @@ -1,6 +1,5 @@ /mob/living/Life(seconds, times_fired) set invisibility = 0 - set background = BACKGROUND_ENABLED if(digitalinvis) handle_diginvis() //AI becomes unable to see mob diff --git a/code/modules/mob/living/silicon/ai/freelook/chunk.dm b/code/modules/mob/living/silicon/ai/freelook/chunk.dm index a76c02f3b57..bf3139cc4ff 100644 --- a/code/modules/mob/living/silicon/ai/freelook/chunk.dm +++ b/code/modules/mob/living/silicon/ai/freelook/chunk.dm @@ -60,9 +60,6 @@ // The actual updating. It gathers the visible turfs from cameras and puts them into the appropiate lists. /datum/camerachunk/proc/update() - - set background = BACKGROUND_ENABLED - var/list/newVisibleTurfs = list() for(var/camera in cameras) diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index 5445941ed3b..dedadd4d2a9 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -1,7 +1,5 @@ /mob/living/silicon/robot/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED - if (src.notransform) return diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index 383cdd268dd..32a7976c8ad 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -225,7 +225,6 @@ return //we use a different hud /mob/living/simple_animal/bot/handle_automated_action() //Master process which handles code common across most bots. - set background = BACKGROUND_ENABLED diag_hud_set_botmode() if (ignorelistcleanuptimer % 300 == 0) // Every 300 actions, clean up the ignore list from old junk diff --git a/code/modules/mob/living/simple_animal/slime/life.dm b/code/modules/mob/living/simple_animal/slime/life.dm index 6cc1df085ca..1c9009ca3db 100644 --- a/code/modules/mob/living/simple_animal/slime/life.dm +++ b/code/modules/mob/living/simple_animal/slime/life.dm @@ -9,8 +9,6 @@ /mob/living/simple_animal/slime/Life() set invisibility = 0 - set background = BACKGROUND_ENABLED - if (notransform) return if(..()) diff --git a/code/modules/ninja/suit/suit_process.dm b/code/modules/ninja/suit/suit_process.dm index 99f801ed76a..c9e955b3598 100644 --- a/code/modules/ninja/suit/suit_process.dm +++ b/code/modules/ninja/suit/suit_process.dm @@ -1,6 +1,4 @@ /obj/item/clothing/suit/space/space_ninja/proc/ntick(mob/living/carbon/human/U = affecting) - set background = BACKGROUND_ENABLED - //Runs in the background while the suit is initialized. //Requires charge or stealth to process. spawn while(s_initialized) diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm index 3465d354d40..88497a0672d 100644 --- a/code/modules/power/singularity/narsie.dm +++ b/code/modules/power/singularity/narsie.dm @@ -193,7 +193,6 @@ grav_pull = 0 /obj/singularity/narsie/wizard/eat() - set background = BACKGROUND_ENABLED // if(defer_powernet_rebuild != 2) // defer_powernet_rebuild = 1 for(var/atom/X in urange(consume_range,src,1)) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index f4b749c0e0c..17aafc94923 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -251,7 +251,6 @@ /obj/singularity/proc/eat() - set background = BACKGROUND_ENABLED for(var/tile in spiral_range_turfs(grav_pull, src)) var/turf/T = tile if(!T || !isturf(loc)) diff --git a/code/modules/procedural_mapping/mapGenerator.dm b/code/modules/procedural_mapping/mapGenerator.dm index 966ef2f9e2e..95eded309c1 100644 --- a/code/modules/procedural_mapping/mapGenerator.dm +++ b/code/modules/procedural_mapping/mapGenerator.dm @@ -104,8 +104,6 @@ //Requests the mapGeneratorModule(s) to (re)generate /datum/mapGenerator/proc/generate() - set background = 1 //this can get beefy - syncModules() if(!modules || !modules.len) return diff --git a/code/modules/procedural_mapping/mapGenerators/cellular.dm b/code/modules/procedural_mapping/mapGenerators/cellular.dm index 3daa7632ff0..7d88f3beb06 100644 --- a/code/modules/procedural_mapping/mapGenerators/cellular.dm +++ b/code/modules/procedural_mapping/mapGenerators/cellular.dm @@ -38,8 +38,6 @@ current_state = old_state.Copy() /datum/mapGenerator/ca/generate() - set background = 1 - //Abandon all hope for efficency all who enter here //Maybe some less basic implemetation later, but this is just simple admin tool initialize()