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

Conflicts:
	code/game/objects/effects/glowshroom.dm
	code/modules/mob/living/carbon/zombie/zombie.dm
	code/modules/mob/living/silicon/mommi/life.dm
This commit is contained in:
d3athrow
2014-01-08 01:25:20 -05:00
committed by ZomgPonies
parent 8d64095078
commit 64d8903802
34 changed files with 44 additions and 42 deletions
+3 -3
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)
@@ -158,7 +158,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
//Outputs: None.
set background = 1
//set background = 1
while(1)
if(!air_processing_killed)
@@ -353,4 +353,4 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
potential_intrazone_connections[B] += A
else
potential_intrazone_connections[B] = list(A)
potential_intrazone_connections[B] = list(A)
+2 -2
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
@@ -352,4 +352,4 @@ proc/get_candidates(be_special_flag=0)
C.images += I
sleep(duration)
for(var/client/C in show_to)
C.images -= I
C.images -= I
+1 -1
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
+2 -2
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())
+1 -1
View File
@@ -109,7 +109,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()
+2 -2
View File
@@ -1867,7 +1867,7 @@ proc/process_ghost_teleport_locs()
Obj << mysound
proc/process()
set background = 1
//set background = 1
var/sound/S = null
var/sound_delay = 0
@@ -2011,7 +2011,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
+1 -1
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
@@ -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)
@@ -740,7 +740,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.
+1 -1
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
+1 -1
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
+1 -1
View File
@@ -224,7 +224,7 @@
return
/obj/machinery/bot/farmbot/process()
set background = 1
//set background = 1
if(!src.on)
return
+1 -1
View File
@@ -165,7 +165,7 @@
src.updateUsrDialog()
/obj/machinery/bot/floorbot/process()
set background = 1
//set background = 1
if(!src.on)
return
+1 -1
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
+1 -1
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
+1 -1
View File
@@ -67,7 +67,7 @@
/obj/machinery/iv_drip/process()
set background = 1
//set background = 1
if(src.attached)
+1 -1
View File
@@ -425,7 +425,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
+1 -1
View File
@@ -213,7 +213,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))
+3 -1
View File
@@ -44,9 +44,11 @@
processing_objects += src
SetLuminosity(round(potency/10))
lastTick = world.timeofday
/obj/effect/glowshroom/Del()
processing_objects -= src
..()
@@ -99,7 +101,7 @@
potency += rand(4,6)
/obj/effect/glowshroom/proc/CalcDir(turf/location = loc)
set background = 1
//set background = 1
var/direction = 16
for(var/wallDir in cardinal)
+1 -1
View File
@@ -158,7 +158,7 @@ var/list/mechtoys = list(
supply_packs[P.name] = P
spawn(0)
set background = 1
//set background = 1
while(1)
if(processing)
iteration++
@@ -24,7 +24,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
@@ -10,7 +10,7 @@
/mob/living/carbon/alien/humanoid/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing)
return
@@ -7,7 +7,7 @@
/mob/living/carbon/alien/larva/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing)
return
+1 -1
View File
@@ -1,6 +1,6 @@
/mob/living/carbon/brain/Life()
set invisibility = 0
set background = 1
//set background = 1
..()
if(stat != DEAD)
@@ -1156,7 +1156,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
+1 -1
View File
@@ -33,7 +33,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
@@ -1,6 +1,6 @@
/mob/living/carbon/slime/Life()
set invisibility = 0
set background = 1
//set background = 1
if (src.monkeyizing)
return
@@ -11,7 +11,7 @@
/mob/living/carbon/monkey/Life()
set invisibility = 0
set background = 1
//set background = 1
if (monkeyizing) return
..()
@@ -68,7 +68,7 @@
/datum/camerachunk/proc/update()
set background = 1
//set background = 1
var/list/newVisibleTurfs = list()
@@ -1,6 +1,6 @@
/mob/living/silicon/robot/Life()
set invisibility = 0
set background = 1
//set background = 1
if (src.monkeyizing)
return
@@ -326,4 +326,4 @@
if(!on_fire) //Silicons don't gain stacks from hotspots, but hotspots can ignite them
IgniteMob()
//Robots on fire
//Robots on fire
+1 -1
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 ))
@@ -205,7 +205,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.
@@ -559,7 +559,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))
@@ -20,7 +20,7 @@
..()
/obj/machinery/suspension_gen/process()
set background = 1
//set background = 1
if (suspension_field)
cell.charge -= power_use
@@ -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
+1 -1
View File
@@ -202,7 +202,7 @@
#define DISCONNECTED_DELETE 6000 //10 minutes in ticks (approx)
/world/proc/KickDisconnectedClients()
spawn(-1)
set background = 1
//set background = 1
while(1)
sleep(DISCONNECTED_DELETE)
for(var/mob/living/carbon/human/C in living_mob_list)