From c6d39deac0a34cf30ace6ca063a377f0502e57be Mon Sep 17 00:00:00 2001 From: Segrain Date: Sat, 22 Feb 2014 06:49:57 +0300 Subject: [PATCH] Fix for #4445. --- code/_onclick/ai.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/_onclick/ai.dm b/code/_onclick/ai.dm index 112c3431e52..d6918b1f7e0 100644 --- a/code/_onclick/ai.dm +++ b/code/_onclick/ai.dm @@ -32,6 +32,9 @@ build_click(src, client.buildmode, params, A) return + if(control_disabled || stat) + return + var/list/modifiers = params2list(params) if(modifiers["middle"]) MiddleClickOn(A) @@ -46,7 +49,8 @@ CtrlClickOn(A) return - if(control_disabled || stat || world.time <= next_move) return + if(world.time <= next_move) + return next_move = world.time + 9 /* @@ -123,4 +127,4 @@ else // disable/6 is not in Topic; disable/5 disables both temporary and permenant shock Topic("aiDisable=5", list("aiDisable"="5"), 1) - return + return \ No newline at end of file