[MIRROR] entertainment cameras now update on move and some cleanup (#9155)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 15:26:00 -07:00
committed by GitHub
parent 5ee51c329a
commit dd40869551
10 changed files with 21 additions and 17 deletions

View File

@@ -136,8 +136,9 @@
if(!A || QDELETED(A))
show_tvs(loc)
if(get_dist(get_turf(src), get_turf(A)) > 5)
if(get_dist(get_turf(src), get_turf(A)) > 0) // No realtime updates
show_tvs(loc)
update_feed()
/obj/item/tvcamera/update_icon()
..()
@@ -153,6 +154,10 @@
H.update_inv_l_hand()
H.update_inv_belt()
/obj/item/tvcamera/proc/update_feed()
if(camera.status)
SEND_SIGNAL(camera, COMSIG_OBSERVER_MOVED) // Forward the movement signal
// CHOMPEdit Start - Bodycam
// Security Bodycam