mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +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)
|
/atom/Click(location,control,params)
|
||||||
usr.ClickOn(src, 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)
|
/atom/DblClick(location,control,params)
|
||||||
usr.DblClickOn(src,params)
|
usr.DblClickOn(src,params)
|
||||||
|
|
||||||
|
|||||||
@@ -79,11 +79,6 @@
|
|||||||
if (isturf(src.loc) || isturf(src))
|
if (isturf(src.loc) || isturf(src))
|
||||||
AI.eyeobj.forceMove(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 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.
|
// This is handled in the proc below this one.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user