mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Fixes a goof in AI Click() code (#17394)
* Fixes a goof on AI code * updates comment * actually fuck that
This commit is contained in:
@@ -14,6 +14,14 @@
|
||||
*/
|
||||
/atom/Click(location,control,params)
|
||||
usr.ClickOn(src, params)
|
||||
|
||||
/mob/living/Click()
|
||||
if(isAI(usr))
|
||||
var/mob/living/silicon/ai/A = usr
|
||||
if(!A.aicamera.in_camera_mode) //Fix for taking photos of mobs
|
||||
return
|
||||
..()
|
||||
|
||||
/atom/DblClick(location,control,params)
|
||||
usr.DblClickOn(src,params)
|
||||
|
||||
|
||||
@@ -79,11 +79,6 @@
|
||||
if (isturf(src.loc) || isturf(src))
|
||||
AI.eyeobj.forceMove(src)
|
||||
|
||||
/mob/living/silicon/ai/Click()
|
||||
if(!aicamera.in_camera_mode) //Fix for taking photos of mobs
|
||||
return
|
||||
..()
|
||||
|
||||
// This will move the AIEye. It will also cause lights near the eye to light up, if toggled.
|
||||
// This is handled in the proc below this one.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user