From f045f380fc6919571d86de818e4cf76e253f32ef Mon Sep 17 00:00:00 2001 From: X0-11 Date: Mon, 3 Jun 2024 19:24:38 +0100 Subject: [PATCH] virtmob tweak --- code/_helpers/unsorted.dm | 2 ++ code/modules/mob/observer/virtual/base.dm | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index 8bec1b1365d89..b2a25757022d5 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -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 diff --git a/code/modules/mob/observer/virtual/base.dm b/code/modules/mob/observer/virtual/base.dm index 762ec2107ad7c..c2d4a0ee108b6 100644 --- a/code/modules/mob/observer/virtual/base.dm +++ b/code/modules/mob/observer/virtual/base.dm @@ -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() . = ..() @@ -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))