Skip to content

Commit

Permalink
virtmob tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
X0-11 committed Jun 3, 2024
1 parent dcdb9c4 commit f045f38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions code/_helpers/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,8 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)

see_in_dark = 1e6

virtual_mob = null

/atom/proc/get_light_and_color(var/atom/origin)
if(origin)
color = origin.color
Expand Down
6 changes: 2 additions & 4 deletions code/modules/mob/observer/virtual/base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var/list/all_virtual_listeners = list()
* Virtual Mob Creation *
***********************/
/atom/movable
var/mob/observer/virtual/virtual_mob
var/mob/observer/virtual/virtual_mob = /mob/observer/virtual

/atom/movable/Initialize()
. = ..()
Expand All @@ -70,6 +70,4 @@ var/list/all_virtual_listeners = list()
return TRUE

/mob/shall_have_virtual_mob()
var/init_virt = initial(virtual_mob)
if(!isnull(init_virt))
return ispath(init_virt)
return ispath(initial(virtual_mob))

0 comments on commit f045f38

Please sign in to comment.