mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
AI PiP Fixes
Fixes the undefined icon resulting in this:  Fixes the two buttons being misaligned with the UI. Fixes double-clicking inside the AI PiP room teleporting the AI Eye out to the room and completely breaking the view. Do note that double-clicking no longer works at all inside the multi-cam room, as a tradeoff for completely preventing UI breaks.
This commit is contained in:
@@ -86,7 +86,12 @@
|
||||
/atom/proc/move_camera_by_click()
|
||||
if(istype(usr, /mob/living/silicon/ai))
|
||||
var/mob/living/silicon/ai/AI = usr
|
||||
if(AI.eyeobj && (AI.multicam_on || (AI.client.eye == AI.eyeobj)))
|
||||
if(AI.eyeobj)
|
||||
+ if(!AI.multicam_on || AI.client.eye != AI.eyeobj)
|
||||
+ return
|
||||
+ var/area/A = get_area(AI.eyeobj)
|
||||
+ if(istype(A, /area/ai_multicam_room))
|
||||
+ return
|
||||
var/turf/T = get_turf(src)
|
||||
if(T)
|
||||
AI.eyeobj.setLoc(T)
|
||||
|
||||
Reference in New Issue
Block a user