Merge pull request #7190 from PsiOmegaDelta/Topic

Fixes exploit that lets AIs use machinery even after cameras are disabled.
This commit is contained in:
Ccomp5950
2014-12-02 20:29:47 -05:00
7 changed files with 62 additions and 24 deletions
+1
View File
@@ -72,6 +72,7 @@ var/list/ai_verbs_default = list(
var/mob/living/silicon/ai/parent = null
var/apc_override = 0 //hack for letting the AI use its APC even when visionless
var/camera_light_on = 0 //Defines if the AI toggled the light on the camera it's looking through.
var/datum/trackable/track = null
var/last_announcement = ""
@@ -166,7 +166,9 @@
src << "Receiving control information from APC."
sleep(2)
//bring up APC dialog
apc_override = 1
theAPC.attack_ai(src)
apc_override = 0
src:aiRestorePowerRoutine = 3
src << "Here are your current laws:"
src.show_laws()