Following /tg/'s lead, removes set background 1 for smoother gameplay.

This commit is contained in:
d3athrow
2014-01-07 21:10:20 -06:00
parent 0b52072263
commit 0cd0f1cdf0
36 changed files with 43 additions and 43 deletions

View File

@@ -126,7 +126,7 @@ var/datum/controller/air_system/air_master
//Inputs: None.
//Outputs: None.
set background = 1
//set background = 1
world << "\red \b Processing Geometry..."
sleep(-1)
@@ -157,7 +157,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
//Outputs: None.
set background = 1
//set background = 1
while(1)
if(!kill_air)

View File

@@ -189,7 +189,7 @@
/proc/get_mobs_in_radio_ranges(var/list/obj/item/device/radio/radios)
set background = 1
//set background = 1
. = list()
// Returns a list of mobs who can hear any of the radios given in @radios

View File

@@ -22,7 +22,7 @@ var/datum/controller/failsafe/Failsafe
/datum/controller/failsafe/proc/process()
processing = 1
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
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

View File

@@ -33,7 +33,7 @@ datum/controller/lighting/New()
datum/controller/lighting/proc/process()
processing = 1
spawn(0)
set background = 1
//set background = 1
while(1)
if(processing)
iteration++
@@ -67,7 +67,7 @@ datum/controller/lighting/proc/process()
datum/controller/lighting/proc/Initialize(var/z_level)
processing = 0
spawn(-1)
set background = 1
//set background = 1
for(var/i=1, i<=lights.len, i++)
var/datum/light_source/L = lights[i]
if(L.check())

View File

@@ -111,7 +111,7 @@ datum/controller/game_controller/proc/setup_objects()
datum/controller/game_controller/proc/process()
processing = 1
spawn(0)
set background = 1
//set background = 1
while(1) //far more efficient than recursively calling ourself
if(!Failsafe) new /datum/controller/failsafe()

View File

@@ -1855,7 +1855,7 @@ proc/process_ghost_teleport_locs()
Obj << mysound
proc/process()
set background = 1
//set background = 1
var/sound/S = null
var/sound_delay = 0
@@ -1979,7 +1979,7 @@ var/list/the_station_areas = list (
Obj << mysound
proc/process()
set background = 1
//set background = 1
var/sound/S = null
var/sound_delay = 0

View File

@@ -51,7 +51,7 @@
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
return

View File

@@ -114,7 +114,7 @@ ________________________________________________________________________________
//=======//PROCESS PROCS//=======//
/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.
spawn while(cell.charge>=0)
@@ -751,7 +751,7 @@ ________________________________________________________________________________
return
/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.
if(!s_initialized||get_dist(affecting,hologram.loc)>3)//Once suit is de-initialized or hologram reaches out of bounds.

View File

@@ -161,7 +161,7 @@ text("<A href='?src=\ref[src];operation=oddbutton'>[src.oddbutton ? "Yes" : "No"
src.screwloose = 1
/obj/machinery/bot/cleanbot/process()
set background = 1
//set background = 1
if(!src.on)
return

View File

@@ -220,7 +220,7 @@ Auto Patrol: []"},
mode = SECBOT_IDLE
/obj/machinery/bot/ed209/process()
set background = 1
//set background = 1
if (!src.on)
return

View File

@@ -226,7 +226,7 @@
return
/obj/machinery/bot/farmbot/process()
set background = 1
//set background = 1
if(!src.on)
return

View File

@@ -209,7 +209,7 @@ var/global/list/floorbot_targets=list()
return (src.target != null)
/obj/machinery/bot/floorbot/process()
set background = 1
//set background = 1
if(!src.on)
return

View File

@@ -231,7 +231,7 @@
src.icon_state = "medibot[src.on]"
/obj/machinery/bot/medbot/process()
set background = 1
//set background = 1
if(!src.on)
src.stunned = 0

View File

@@ -192,7 +192,7 @@ Auto Patrol: []"},
mode = SECBOT_IDLE
/obj/machinery/bot/secbot/process()
set background = 1
//set background = 1
if(!src.on)
return

View File

@@ -72,7 +72,7 @@
/obj/machinery/iv_drip/process()
set background = 1
//set background = 1
if(src.attached)
if(!(get_dist(src, src.attached) <= 1 && isturf(src.attached.loc)))

View File

@@ -426,7 +426,7 @@ Status: []<BR>"},
/obj/machinery/porta_turret/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 (stat & BROKEN) // if the turret is borked

View File

@@ -206,7 +206,7 @@
return
/obj/effect/alien/weeds/proc/Life()
set background = 1
//set background = 1
var/turf/U = get_turf(src)
/*
if (locate(/obj/movable, U))

View File

@@ -45,7 +45,7 @@
Spread()
/obj/effect/glowshroom/proc/Spread()
set background = 1
//set background = 1
var/spreaded = 1
while(spreaded)
@@ -93,7 +93,7 @@
sleep(delay)
/obj/effect/glowshroom/proc/CalcDir(turf/location = loc)
set background = 1
//set background = 1
var/direction = 16
for(var/wallDir in cardinal)

View File

@@ -157,7 +157,7 @@ var/list/mechtoys = list(
supply_packs[P.name] = P
spawn(0)
set background = 1
//set background = 1
while(1)
if(processing)
iteration++

View File

@@ -36,7 +36,7 @@ var/inactive_keys = "None<br>"
usr << browse(dat, "window=inactive_customitems;size=600x480")
/proc/populate_inactive_customitems_list(var/client/C)
set background = 1
//set background = 1
if(checked_for_inactives)
return

View File

@@ -10,7 +10,7 @@
/mob/living/carbon/alien/humanoid/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing)
return

View File

@@ -7,7 +7,7 @@
/mob/living/carbon/alien/larva/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing)
return

View File

@@ -1,6 +1,6 @@
/mob/living/carbon/brain/Life()
set invisibility = 0
set background = 1
//set background = 1
..()
if(stat != DEAD)

View File

@@ -1155,7 +1155,7 @@
/*
/mob/living/carbon/human/verb/simulate()
set name = "sim"
set background = 1
//set background = 1
var/damage = input("Wound damage","Wound damage") as num

View File

@@ -50,7 +50,7 @@
/mob/living/carbon/human/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing) return
if(!loc) return // Fixing a null error that occurs when the mob isn't found in the world -- TLE

View File

@@ -9,7 +9,7 @@
/mob/living/carbon/slime/Life()
set invisibility = 0
set background = 1
//set background = 1
if (src.monkeyizing)
return

View File

@@ -11,7 +11,7 @@
/mob/living/carbon/monkey/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing) return
if (update_muts)
update_muts=0

View File

@@ -94,7 +94,7 @@
frustration = 0
proc/process()
set background = 1
//set background = 1
var/quick_move = 1
var/slow_move = 0
@@ -273,7 +273,7 @@
proc/idle()
set background = 1
//set background = 1
var/quick_move = 0
if(state != 2 || src.stat == 2 || target) return

View File

@@ -68,7 +68,7 @@
/datum/camerachunk/proc/update()
set background = 1
//set background = 1
var/list/newVisibleTurfs = list()

View File

@@ -1,6 +1,6 @@
/mob/living/silicon/robot/mommi/Life()
set invisibility = 0
set background = 1
//set background = 1
if (src.monkeyizing)
return

View File

@@ -1,6 +1,6 @@
/mob/living/silicon/robot/Life()
set invisibility = 0
set background = 1
//set background = 1
if (src.monkeyizing)
return

View File

@@ -113,7 +113,7 @@
/obj/machinery/computer/gravity_control_computer/Topic(href, href_list)
set background = 1
//set background = 1
..()
if ( (get_dist(src, usr) > 1 ))

View File

@@ -209,7 +209,7 @@ var/global/list/uneatable = list(
/obj/machinery/singularity/proc/eat()
set background = 1
//set background = 1
if(defer_powernet_rebuild != 2)
defer_powernet_rebuild = 1
// Let's just make this one loop.
@@ -566,7 +566,7 @@ var/global/list/uneatable = list(
grav_pull = 0
/obj/machinery/singularity/narsie/wizard/eat()
set background = 1
//set background = 1
if(defer_powernet_rebuild != 2)
defer_powernet_rebuild = 1
for(var/atom/X in orange(consume_range,src))

View File

@@ -20,7 +20,7 @@
..()
/obj/machinery/suspension_gen/process()
set background = 1
//set background = 1
if (suspension_field)
cell.charge -= power_use

View File

@@ -38,7 +38,7 @@
scan_ticks++
if(prob(scan_ticks * 10))
spawn(0)
set background = 1
//set background = 1
if(processing_objects.Find(src))
//scan radios in the world to try and find one
var/cur_dist = 999

View File

@@ -184,7 +184,7 @@
#define INACTIVITY_KICK 6000 //10 minutes in ticks (approx.)
/world/proc/KickInactiveClients()
spawn(-1)
set background = 1
//set background = 1
while(1)
sleep(INACTIVITY_KICK)
for(var/client/C in clients)