A bit more sensible solution

This commit is contained in:
AnturK
2015-12-20 19:36:40 +01:00
parent 5e45b7efd0
commit 879bb6c0c0
@@ -759,7 +759,7 @@ Pass a positive integer as an argument to override a bot's default speed.
qdel(src)
/mob/living/simple_animal/bot/proc/topic_denied(mob/user) //Access check proc for bot topics! Remember to place in a bot's individual Topic if desired.
if(!Adjacent(user) && !issilicon(user))
if(!user.canUseTopic(src))
return 1
// 0 for access, 1 for denied.
if(emagged == 2) //An emagged bot cannot be controlled by humans, silicons can if one hacked it.