AI PiP Fixes

Fixes the undefined icon resulting in this:
![https://i.tigercat2000.net/2020/05/firefox_4x2cbYTrT1.png](https://i.tigercat2000.net/2020/05/firefox_4x2cbYTrT1.png)
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:
Rykka
2020-05-10 21:53:31 -04:00
parent dad851b252
commit 29037fd40a
3 changed files with 9 additions and 3 deletions

View File

@@ -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)