This should hopefully reduce processing requirements, by not rebuilding icons every tick.

(Ported oldcode, all props to Strumpetplaya)
This commit is contained in:
SkyMarshal
2012-02-13 21:54:22 -07:00
parent 42be0feff6
commit 0fe42327a5
12 changed files with 18 additions and 4 deletions

View File

@@ -85,7 +85,7 @@
handle_health_updates()
// Update clothing
update_clothing()
// update_clothing()
if(client)
handle_regular_hud_updates()

View File

@@ -474,6 +474,7 @@
usr << "\blue You successfully remove your handcuffs."
usr:handcuffed:loc = usr:loc
usr:handcuffed = null
usr.update_clothing()
if(istype(usr, /mob/living/carbon/human) && istype(usr:wear_suit, /obj/item/clothing/suit/straight_jacket) && usr:canmove && (usr.last_special <= world.time))
usr.next_move = world.time + 200