Two fixes

Double click made non-snowflake, cancel camera exploit patched
This commit is contained in:
Kelenius
2014-07-13 15:20:53 -04:00
committed by ZomgPonies
parent b6c6138c44
commit a0609d0ce7
3 changed files with 6 additions and 4 deletions
-2
View File
@@ -10,8 +10,6 @@
Note that AI have no need for the adjacency proc, and so this proc is a lot cleaner.
*/
/mob/living/silicon/ai/DblClickOn(var/atom/A, params)
if (istype(A, /obj/screen))
return
if(client.buildmode) // comes after object.Click to allow buildmode gui objects to be clicked
build_click(src, client.buildmode, params, A)
return
+4 -1
View File
@@ -302,6 +302,9 @@ var/list/ai_list = list()
return
/mob/living/silicon/ai/cancel_camera()
src.view_core()
/mob/living/silicon/ai/verb/toggle_anchor()
set category = "AI Commands"
set name = "Toggle Floor Bolts"
@@ -775,4 +778,4 @@ var/list/ai_list = list()
anchored = 1
return
else
return ..()
return ..()
@@ -86,7 +86,8 @@
var/mob/living/silicon/ai/AI = usr
if(AI.eyeobj && AI.client.eye == AI.eyeobj)
AI.cameraFollow = null
AI.eyeobj.setLoc(src)
if (src.loc)
AI.eyeobj.setLoc(src)
// 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.