mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Following /tg/'s lead, removes set background 1 for smoother gameplay.
This commit is contained in:
@@ -126,7 +126,7 @@ var/datum/controller/air_system/air_master
|
|||||||
//Inputs: None.
|
//Inputs: None.
|
||||||
//Outputs: None.
|
//Outputs: None.
|
||||||
|
|
||||||
set background = 1
|
//set background = 1
|
||||||
world << "\red \b Processing Geometry..."
|
world << "\red \b Processing Geometry..."
|
||||||
sleep(-1)
|
sleep(-1)
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
|
|||||||
//Outputs: None.
|
//Outputs: None.
|
||||||
|
|
||||||
|
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
if(!kill_air)
|
if(!kill_air)
|
||||||
|
|||||||
@@ -189,7 +189,7 @@
|
|||||||
|
|
||||||
/proc/get_mobs_in_radio_ranges(var/list/obj/item/device/radio/radios)
|
/proc/get_mobs_in_radio_ranges(var/list/obj/item/device/radio/radios)
|
||||||
|
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
. = list()
|
. = list()
|
||||||
// Returns a list of mobs who can hear any of the radios given in @radios
|
// Returns a list of mobs who can hear any of the radios given in @radios
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ var/datum/controller/failsafe/Failsafe
|
|||||||
/datum/controller/failsafe/proc/process()
|
/datum/controller/failsafe/proc/process()
|
||||||
processing = 1
|
processing = 1
|
||||||
spawn(0)
|
spawn(0)
|
||||||
set background = 1
|
//set background = 1
|
||||||
while(1) //more efficient than recursivly calling ourself over and over. background = 1 ensures we do not trigger an infinite loop
|
while(1) //more efficient than recursivly calling ourself over and over. background = 1 ensures we do not trigger an infinite loop
|
||||||
if(!master_controller) new /datum/controller/game_controller() //replace the missing master_controller! This should never happen.
|
if(!master_controller) new /datum/controller/game_controller() //replace the missing master_controller! This should never happen.
|
||||||
if(!lighting_controller) new /datum/controller/lighting() //replace the missing lighting_controller
|
if(!lighting_controller) new /datum/controller/lighting() //replace the missing lighting_controller
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ datum/controller/lighting/New()
|
|||||||
datum/controller/lighting/proc/process()
|
datum/controller/lighting/proc/process()
|
||||||
processing = 1
|
processing = 1
|
||||||
spawn(0)
|
spawn(0)
|
||||||
set background = 1
|
//set background = 1
|
||||||
while(1)
|
while(1)
|
||||||
if(processing)
|
if(processing)
|
||||||
iteration++
|
iteration++
|
||||||
@@ -67,7 +67,7 @@ datum/controller/lighting/proc/process()
|
|||||||
datum/controller/lighting/proc/Initialize(var/z_level)
|
datum/controller/lighting/proc/Initialize(var/z_level)
|
||||||
processing = 0
|
processing = 0
|
||||||
spawn(-1)
|
spawn(-1)
|
||||||
set background = 1
|
//set background = 1
|
||||||
for(var/i=1, i<=lights.len, i++)
|
for(var/i=1, i<=lights.len, i++)
|
||||||
var/datum/light_source/L = lights[i]
|
var/datum/light_source/L = lights[i]
|
||||||
if(L.check())
|
if(L.check())
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ datum/controller/game_controller/proc/setup_objects()
|
|||||||
datum/controller/game_controller/proc/process()
|
datum/controller/game_controller/proc/process()
|
||||||
processing = 1
|
processing = 1
|
||||||
spawn(0)
|
spawn(0)
|
||||||
set background = 1
|
//set background = 1
|
||||||
while(1) //far more efficient than recursively calling ourself
|
while(1) //far more efficient than recursively calling ourself
|
||||||
if(!Failsafe) new /datum/controller/failsafe()
|
if(!Failsafe) new /datum/controller/failsafe()
|
||||||
|
|
||||||
|
|||||||
@@ -1855,7 +1855,7 @@ proc/process_ghost_teleport_locs()
|
|||||||
Obj << mysound
|
Obj << mysound
|
||||||
|
|
||||||
proc/process()
|
proc/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
var/sound/S = null
|
var/sound/S = null
|
||||||
var/sound_delay = 0
|
var/sound_delay = 0
|
||||||
@@ -1979,7 +1979,7 @@ var/list/the_station_areas = list (
|
|||||||
Obj << mysound
|
Obj << mysound
|
||||||
|
|
||||||
proc/process()
|
proc/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
var/sound/S = null
|
var/sound/S = null
|
||||||
var/sound_delay = 0
|
var/sound_delay = 0
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
proc/Pulse(var/pulse = 0, var/origin_dir = 0)//Todo: Fix spaceblob expand
|
proc/Pulse(var/pulse = 0, var/origin_dir = 0)//Todo: Fix spaceblob expand
|
||||||
|
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(run_action())//If we can do something here then we dont need to pulse more
|
if(run_action())//If we can do something here then we dont need to pulse more
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ ________________________________________________________________________________
|
|||||||
//=======//PROCESS PROCS//=======//
|
//=======//PROCESS PROCS//=======//
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/space_ninja/proc/ntick(mob/living/carbon/human/U = affecting)
|
/obj/item/clothing/suit/space/space_ninja/proc/ntick(mob/living/carbon/human/U = affecting)
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
//Runs in the background while the suit is initialized.
|
//Runs in the background while the suit is initialized.
|
||||||
spawn while(cell.charge>=0)
|
spawn while(cell.charge>=0)
|
||||||
@@ -751,7 +751,7 @@ ________________________________________________________________________________
|
|||||||
return
|
return
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/space_ninja/proc/ai_holo_process()
|
/obj/item/clothing/suit/space/space_ninja/proc/ai_holo_process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
spawn while(hologram&&s_initialized&&AI)//Suit on and there is an AI present.
|
spawn while(hologram&&s_initialized&&AI)//Suit on and there is an AI present.
|
||||||
if(!s_initialized||get_dist(affecting,hologram.loc)>3)//Once suit is de-initialized or hologram reaches out of bounds.
|
if(!s_initialized||get_dist(affecting,hologram.loc)>3)//Once suit is de-initialized or hologram reaches out of bounds.
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ text("<A href='?src=\ref[src];operation=oddbutton'>[src.oddbutton ? "Yes" : "No"
|
|||||||
src.screwloose = 1
|
src.screwloose = 1
|
||||||
|
|
||||||
/obj/machinery/bot/cleanbot/process()
|
/obj/machinery/bot/cleanbot/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(!src.on)
|
if(!src.on)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ Auto Patrol: []"},
|
|||||||
mode = SECBOT_IDLE
|
mode = SECBOT_IDLE
|
||||||
|
|
||||||
/obj/machinery/bot/ed209/process()
|
/obj/machinery/bot/ed209/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (!src.on)
|
if (!src.on)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/bot/farmbot/process()
|
/obj/machinery/bot/farmbot/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(!src.on)
|
if(!src.on)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ var/global/list/floorbot_targets=list()
|
|||||||
return (src.target != null)
|
return (src.target != null)
|
||||||
|
|
||||||
/obj/machinery/bot/floorbot/process()
|
/obj/machinery/bot/floorbot/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(!src.on)
|
if(!src.on)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -231,7 +231,7 @@
|
|||||||
src.icon_state = "medibot[src.on]"
|
src.icon_state = "medibot[src.on]"
|
||||||
|
|
||||||
/obj/machinery/bot/medbot/process()
|
/obj/machinery/bot/medbot/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(!src.on)
|
if(!src.on)
|
||||||
src.stunned = 0
|
src.stunned = 0
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ Auto Patrol: []"},
|
|||||||
mode = SECBOT_IDLE
|
mode = SECBOT_IDLE
|
||||||
|
|
||||||
/obj/machinery/bot/secbot/process()
|
/obj/machinery/bot/secbot/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(!src.on)
|
if(!src.on)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/iv_drip/process()
|
/obj/machinery/iv_drip/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(src.attached)
|
if(src.attached)
|
||||||
if(!(get_dist(src, src.attached) <= 1 && isturf(src.attached.loc)))
|
if(!(get_dist(src, src.attached) <= 1 && isturf(src.attached.loc)))
|
||||||
|
|||||||
@@ -426,7 +426,7 @@ Status: []<BR>"},
|
|||||||
/obj/machinery/porta_turret/process()
|
/obj/machinery/porta_turret/process()
|
||||||
// the main machinery process
|
// the main machinery process
|
||||||
|
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(src.cover==null && anchored) // if it has no cover and is anchored
|
if(src.cover==null && anchored) // if it has no cover and is anchored
|
||||||
if (stat & BROKEN) // if the turret is borked
|
if (stat & BROKEN) // if the turret is borked
|
||||||
|
|||||||
@@ -206,7 +206,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
/obj/effect/alien/weeds/proc/Life()
|
/obj/effect/alien/weeds/proc/Life()
|
||||||
set background = 1
|
//set background = 1
|
||||||
var/turf/U = get_turf(src)
|
var/turf/U = get_turf(src)
|
||||||
/*
|
/*
|
||||||
if (locate(/obj/movable, U))
|
if (locate(/obj/movable, U))
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
Spread()
|
Spread()
|
||||||
|
|
||||||
/obj/effect/glowshroom/proc/Spread()
|
/obj/effect/glowshroom/proc/Spread()
|
||||||
set background = 1
|
//set background = 1
|
||||||
var/spreaded = 1
|
var/spreaded = 1
|
||||||
|
|
||||||
while(spreaded)
|
while(spreaded)
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
sleep(delay)
|
sleep(delay)
|
||||||
|
|
||||||
/obj/effect/glowshroom/proc/CalcDir(turf/location = loc)
|
/obj/effect/glowshroom/proc/CalcDir(turf/location = loc)
|
||||||
set background = 1
|
//set background = 1
|
||||||
var/direction = 16
|
var/direction = 16
|
||||||
|
|
||||||
for(var/wallDir in cardinal)
|
for(var/wallDir in cardinal)
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ var/list/mechtoys = list(
|
|||||||
supply_packs[P.name] = P
|
supply_packs[P.name] = P
|
||||||
|
|
||||||
spawn(0)
|
spawn(0)
|
||||||
set background = 1
|
//set background = 1
|
||||||
while(1)
|
while(1)
|
||||||
if(processing)
|
if(processing)
|
||||||
iteration++
|
iteration++
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ var/inactive_keys = "None<br>"
|
|||||||
usr << browse(dat, "window=inactive_customitems;size=600x480")
|
usr << browse(dat, "window=inactive_customitems;size=600x480")
|
||||||
|
|
||||||
/proc/populate_inactive_customitems_list(var/client/C)
|
/proc/populate_inactive_customitems_list(var/client/C)
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if(checked_for_inactives)
|
if(checked_for_inactives)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
/mob/living/carbon/alien/humanoid/Life()
|
/mob/living/carbon/alien/humanoid/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (monkeyizing)
|
if (monkeyizing)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
/mob/living/carbon/alien/larva/Life()
|
/mob/living/carbon/alien/larva/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (monkeyizing)
|
if (monkeyizing)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/mob/living/carbon/brain/Life()
|
/mob/living/carbon/brain/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
..()
|
..()
|
||||||
|
|
||||||
if(stat != DEAD)
|
if(stat != DEAD)
|
||||||
|
|||||||
@@ -1155,7 +1155,7 @@
|
|||||||
/*
|
/*
|
||||||
/mob/living/carbon/human/verb/simulate()
|
/mob/living/carbon/human/verb/simulate()
|
||||||
set name = "sim"
|
set name = "sim"
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
var/damage = input("Wound damage","Wound damage") as num
|
var/damage = input("Wound damage","Wound damage") as num
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
/mob/living/carbon/human/Life()
|
/mob/living/carbon/human/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (monkeyizing) return
|
if (monkeyizing) return
|
||||||
if(!loc) return // Fixing a null error that occurs when the mob isn't found in the world -- TLE
|
if(!loc) return // Fixing a null error that occurs when the mob isn't found in the world -- TLE
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/mob/living/carbon/slime/Life()
|
/mob/living/carbon/slime/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (src.monkeyizing)
|
if (src.monkeyizing)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/mob/living/carbon/monkey/Life()
|
/mob/living/carbon/monkey/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
if (monkeyizing) return
|
if (monkeyizing) return
|
||||||
if (update_muts)
|
if (update_muts)
|
||||||
update_muts=0
|
update_muts=0
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
frustration = 0
|
frustration = 0
|
||||||
|
|
||||||
proc/process()
|
proc/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
var/quick_move = 1
|
var/quick_move = 1
|
||||||
var/slow_move = 0
|
var/slow_move = 0
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
|
|
||||||
|
|
||||||
proc/idle()
|
proc/idle()
|
||||||
set background = 1
|
//set background = 1
|
||||||
var/quick_move = 0
|
var/quick_move = 0
|
||||||
|
|
||||||
if(state != 2 || src.stat == 2 || target) return
|
if(state != 2 || src.stat == 2 || target) return
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
/datum/camerachunk/proc/update()
|
/datum/camerachunk/proc/update()
|
||||||
|
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
var/list/newVisibleTurfs = list()
|
var/list/newVisibleTurfs = list()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/mob/living/silicon/robot/mommi/Life()
|
/mob/living/silicon/robot/mommi/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (src.monkeyizing)
|
if (src.monkeyizing)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/mob/living/silicon/robot/Life()
|
/mob/living/silicon/robot/Life()
|
||||||
set invisibility = 0
|
set invisibility = 0
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (src.monkeyizing)
|
if (src.monkeyizing)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/gravity_control_computer/Topic(href, href_list)
|
/obj/machinery/computer/gravity_control_computer/Topic(href, href_list)
|
||||||
set background = 1
|
//set background = 1
|
||||||
..()
|
..()
|
||||||
|
|
||||||
if ( (get_dist(src, usr) > 1 ))
|
if ( (get_dist(src, usr) > 1 ))
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ var/global/list/uneatable = list(
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/singularity/proc/eat()
|
/obj/machinery/singularity/proc/eat()
|
||||||
set background = 1
|
//set background = 1
|
||||||
if(defer_powernet_rebuild != 2)
|
if(defer_powernet_rebuild != 2)
|
||||||
defer_powernet_rebuild = 1
|
defer_powernet_rebuild = 1
|
||||||
// Let's just make this one loop.
|
// Let's just make this one loop.
|
||||||
@@ -566,7 +566,7 @@ var/global/list/uneatable = list(
|
|||||||
grav_pull = 0
|
grav_pull = 0
|
||||||
|
|
||||||
/obj/machinery/singularity/narsie/wizard/eat()
|
/obj/machinery/singularity/narsie/wizard/eat()
|
||||||
set background = 1
|
//set background = 1
|
||||||
if(defer_powernet_rebuild != 2)
|
if(defer_powernet_rebuild != 2)
|
||||||
defer_powernet_rebuild = 1
|
defer_powernet_rebuild = 1
|
||||||
for(var/atom/X in orange(consume_range,src))
|
for(var/atom/X in orange(consume_range,src))
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/machinery/suspension_gen/process()
|
/obj/machinery/suspension_gen/process()
|
||||||
set background = 1
|
//set background = 1
|
||||||
|
|
||||||
if (suspension_field)
|
if (suspension_field)
|
||||||
cell.charge -= power_use
|
cell.charge -= power_use
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
scan_ticks++
|
scan_ticks++
|
||||||
if(prob(scan_ticks * 10))
|
if(prob(scan_ticks * 10))
|
||||||
spawn(0)
|
spawn(0)
|
||||||
set background = 1
|
//set background = 1
|
||||||
if(processing_objects.Find(src))
|
if(processing_objects.Find(src))
|
||||||
//scan radios in the world to try and find one
|
//scan radios in the world to try and find one
|
||||||
var/cur_dist = 999
|
var/cur_dist = 999
|
||||||
|
|||||||
@@ -184,7 +184,7 @@
|
|||||||
#define INACTIVITY_KICK 6000 //10 minutes in ticks (approx.)
|
#define INACTIVITY_KICK 6000 //10 minutes in ticks (approx.)
|
||||||
/world/proc/KickInactiveClients()
|
/world/proc/KickInactiveClients()
|
||||||
spawn(-1)
|
spawn(-1)
|
||||||
set background = 1
|
//set background = 1
|
||||||
while(1)
|
while(1)
|
||||||
sleep(INACTIVITY_KICK)
|
sleep(INACTIVITY_KICK)
|
||||||
for(var/client/C in clients)
|
for(var/client/C in clients)
|
||||||
|
|||||||
Reference in New Issue
Block a user