Skip to content

Commit fc93c20

Browse files
authored
bugfix: autoobserve 6 (#6858)
* 1 * 12 * Revert "12" This reverts commit c2b5146. * Works, but not good * Revert "Works, but not good" This reverts commit 02a88e4. * Revert "1" This reverts commit ab7b1d7. * meh * Revert "meh" This reverts commit d03ba07. * meh
1 parent d154396 commit fc93c20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

code/modules/mob/dead/observer/observer.dm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
712712
cleanup_observe()
713713

714714

715+
hud_used?.plane_master_controllers[PLANE_MASTERS_GAME].remove_filter("eye_blur")
715716
lighting_alpha = client?.prefs.ghost_darkness_level
716717
update_sight()
717718

@@ -721,7 +722,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
721722
clear_fullscreens()
722723

723724
if(client)
724-
hud_used.plane_master_controllers[PLANE_MASTERS_GAME].remove_filter("eye_blur")
725725
UnregisterSignal(src, COMSIG_ORBITER_ORBIT_STOP)
726726
if(do_observe_target)
727727
UnregisterSignal(do_observe_target, COMSIG_MOB_UPDATE_SIGHT)
@@ -736,8 +736,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
736736
if(!orbiting || !client)
737737
return
738738

739-
sight = do_observe_target.sight
740-
lighting_alpha = do_observe_target.lighting_alpha
739+
// idk why, but we need to hold '?' here, else this runtimes sometimes
740+
sight = do_observe_target?.sight
741+
lighting_alpha = do_observe_target?.lighting_alpha
741742
update_sight()
742743

743744
/mob/dead/observer/verb/toggle_ghostsee()

0 commit comments

Comments
 (0)