Fixes a goof in AI Click() code (#17394)

* Fixes a goof on AI code

* updates comment

* actually fuck that
This commit is contained in:
jknpj
2018-02-09 16:29:35 -03:00
committed by sood
parent 480988de61
commit 6a85d46c85
2 changed files with 8 additions and 5 deletions

View File

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

View File

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