mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Machine var shim (#18644)
* removal of machine var * shimsham * deprecation warnings * COMSIG_LIVING_HANDLE_VISION signal * improved * more cleanup * more fixes * this is fine * fixed radios * notices for now, tgui fix * cleaned up hud and vision parent calls, adds COMSIG_LIVING_HANDLE_HUD * radios use tgui now * guestpass does not need machine anymore * cloning machine doesn't use it * this arcade machine is tgui too * autolathe does not need machine * remaining cleanup * doc fix * fix * logout handling --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
if(!current_uav)
|
||||
return
|
||||
|
||||
if(user.machine != tgui_host())
|
||||
if(!user.check_current_machine(tgui_host()))
|
||||
user.set_machine(tgui_host())
|
||||
current_uav.add_master(user)
|
||||
LAZYDISTINCTADD(viewers, WEAKREF(user))
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
/datum/tgui_module/ship/tgui_status(mob/user)
|
||||
. = ..()
|
||||
if(viewing_overmap(user) && (user.machine != src))
|
||||
if(viewing_overmap(user) && (!user.check_current_machine(src)))
|
||||
user.reset_perspective()
|
||||
|
||||
/datum/tgui_module/ship/tgui_close(mob/user)
|
||||
|
||||
@@ -175,6 +175,9 @@
|
||||
if(user.client)
|
||||
terminate_byondui_elements()
|
||||
|
||||
// Unset machine just to be sure.
|
||||
user.unset_machine()
|
||||
|
||||
state = null
|
||||
if(parent_ui)
|
||||
parent_ui.children -= src
|
||||
|
||||
Reference in New Issue
Block a user