Runtime fixes, tweaks.

This commit is contained in:
Spamcat
2013-06-04 16:25:41 +04:00
parent b15738d5d4
commit c5a57ccdc4
7 changed files with 12 additions and 5 deletions

View File

@@ -17,8 +17,6 @@ var/global/list/landmarks_list = list() //list of all landmarks created
var/global/list/surgery_steps = list() //list of all surgery steps |BS12
var/global/list/mechas_list = list() //list of all mechs. Used by hostile mobs target tracking.
var/global/list/portals = list() //for use by portals
//Preferences stuff
//Hairstyles
var/global/list/hair_styles_list = list() //stores /datum/sprite_accessory/hair indexed by name

View File

@@ -32,6 +32,8 @@ would spawn and follow the beaker, even if it is carried or thrown.
/obj/effect/proc/delete()
loc = null
if(reagents)
reagents.delete()
return

View File

@@ -105,6 +105,7 @@
holder.icon_state = "hudunknown"
C.images += holder
else
perpname = perp.name
holder.icon_state = "hudunknown"
C.images += holder

View File

@@ -1022,7 +1022,7 @@
for(var/image/hud in client.images)
if(copytext(hud.icon_state,1,4) == "hud") //ugly, but icon comparison is worse, I believe
del(hud)
client.images.Remove(hud)
client.screen.Remove(global_hud.blurry, global_hud.druggy, global_hud.vimpaired, global_hud.darkMask)

View File

@@ -160,7 +160,7 @@
for(var/image/hud in client.images) //COPIED FROM the human handle_regular_hud_updates() proc
if(copytext(hud.icon_state,1,4) == "hud") //ugly, but icon comparison is worse, I believe
del(hud)
client.images.Remove(hud)
var/obj/item/borg/sight/hud/hud = (locate(/obj/item/borg/sight/hud) in src)
if(hud && hud.hud) hud.hud.process_hud(src)

View File

@@ -40,7 +40,7 @@
T = L
break
if(istype(A, /obj/mecha))
else if(istype(A, /obj/mecha)) // Our line of sight stuff was already done in ListTargets().
var/obj/mecha/M = A
if (M.occupant)
stance = HOSTILE_STANCE_ATTACK

View File

@@ -515,6 +515,12 @@ datum
//world << "reagent data set ([reagent_id])"
D.data = new_data
delete()
for(var/datum/reagent/R in reagent_list)
R.holder = null
if(my_atom)
my_atom.reagents = null
///////////////////////////////////////////////////////////////////////////////////