Attacking a locker or crate with an ID-containing object will toggle the lock instead of opening it

This commit is contained in:
Nerd Lord
2016-04-28 22:34:37 -04:00
parent 0c8dd1767d
commit 49dd259cbc
@@ -251,7 +251,7 @@
"<span class='italics'>You hear welding.</span>")
update_icon()
else if(user.a_intent != "harm" && !(W.flags & NOBLUDGEON))
if(!toggle(user))
if(W.GetID() || !toggle(user))
togglelock(user)
return 1
else