Merge pull request #417 from SkyMarshal/master

Should reduce lag, mobs no longer update icons ever tick.
This commit is contained in:
Albert Iordache
2012-02-14 04:20:00 -08:00
14 changed files with 51 additions and 5 deletions
+5 -1
View File
@@ -12,6 +12,7 @@
life_tick = 0
isbreathing = 1
holdbreath = 0
lyingcheck = 0
/mob/living/carbon/human/Life()
set invisibility = 0
@@ -85,7 +86,10 @@
handle_health_updates()
// Update clothing
update_clothing()
// update_clothing()
if(lyingcheck != lying) //This is a fix for falling down / standing up not updating icons. Instead of going through and changing every
update_clothing() //instance in the code where lying is modified, I've just added a new variable "lyingcheck" which will be compared
lyingcheck = lying //to lying, so if lying ever changes, update_clothing() will run like normal.
if(client)
handle_regular_hud_updates()
+1
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