HUD-Optimization bugfix, mobs with no clients will update their health

HUD image as well.

Conflicts:
	code/modules/mob/living/carbon/human/life.dm
This commit is contained in:
Ccomp5950
2014-03-15 05:11:26 -04:00
committed by ZomgPonies
parent 0e7278a597
commit 103866975e
+1 -2
View File
@@ -1243,11 +1243,10 @@
return 1
proc/handle_regular_hud_updates()
if(!client) return 0
if(hud_updateflag)
handle_hud_list()
if(!client) return 0
for(var/image/hud in client.images)
if(copytext(hud.icon_state,1,4) == "hud") //ugly, but icon comparison is worse, I believe