Resolves issue 961 - invisibility is set in the define not in New for ghosts

Replaces usr with mob. Using usr means invisimin can't be used as a proc


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4765 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-09-28 03:56:51 +00:00
parent 75061ef8e0
commit 01882fec26
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -476,10 +476,10 @@
if(holder && mob)
if(mob.invisibility == INVISIBILITY_OBSERVER)
mob.invisibility = initial(mob.invisibility)
usr << "\red <b>You are now visible to other players.</b>"
mob << "\red <b>Invisimin off. Invisibility reset.</b>"
else
mob.invisibility = INVISIBILITY_OBSERVER
usr << "\blue <b>You are now invisible to other players.</b>"
mob << "\blue <b>Invisimin on. You are now as invisible as a ghost.</b>"
/client/proc/player_panel()
+1 -1
View File
@@ -9,6 +9,7 @@
canmove = 0
blinded = 0
anchored = 1 // don't get pushed around
invisibility = INVISIBILITY_OBSERVER
var/can_reenter_corpse
var/datum/hud/living/carbon/hud = null // hud
var/bootime = 0
@@ -17,7 +18,6 @@
//Note that this is not a reliable way to determine if admins started as observers, since they change mobs a lot.
/mob/dead/observer/New(mob/body)
invisibility = INVISIBILITY_OBSERVER
sight |= SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
see_invisible = SEE_INVISIBLE_OBSERVER
see_in_dark = 100