Observer huds now only trigger for mobs (#20490)

* Observer huds now only trigger for mobs

getpois can return items that are not mobs, such as the capture the flag
machinery, so we avoid trying to set the hud for these items

* add missing bracket
This commit is contained in:
oranges
2016-09-15 08:55:52 +02:00
committed by AnturK
parent 9e0e26ab17
commit 230ebb5dc7
+2 -2
View File
@@ -499,8 +499,8 @@ var/next_mob_id = 0
return
var/mob/mob_eye = creatures[eye_name]
if(client && mob_eye)
//Istype so we filter out points of interest that are not mobs
if(client && mob_eye && istype(mob_eye))
client.eye = mob_eye
if(isobserver(src))
src.client.screen = list()