Skip to content

Commit

Permalink
found the issue, eye aint getting set, wil fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Aug 30, 2024
1 parent 0a35220 commit bf6de72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -844,15 +844,19 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/reset_perspective(atom/A)
if(client)
if(ismob(client.eye) && (client.eye != src))
var/mob/target = client.eye
observetarget = null
if(target.observers)
LAZYREMOVE(target.observers, src)
cleanup_observe()
if(..())
if(hud_used)
client.screen = list()
hud_used.show_hud(hud_used.hud_version)

/mob/dead/observer/proc/cleanup_observe()
var/mob/target = client.eye
observetarget = null
client?.perspective = initial(client.perspective)
if(target.observers)
LAZYREMOVE(target.observers, src)

/mob/dead/observer/verb/observe()
set name = "Observe"
set category = "Ghost"
Expand All @@ -873,7 +877,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/dead/observer/proc/do_observe(mob/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
client.set_eye(mob_eye)
if(mob_eye.hud_used)
client.screen = list()
LAZYOR(mob_eye.observers, src)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
else
client.perspective = EYE_PERSPECTIVE
client.eye = loc
return 1
return TRUE

/// Show the mob's inventory to another mob
/mob/proc/show_inv(mob/user)
Expand Down

0 comments on commit bf6de72

Please sign in to comment.