Bugfix/runtime cleanup (#4249)

Some RTs.

Fixes #4091
Fixes #4092
Fixes #4077
This commit is contained in:
Erki
2018-02-08 11:59:11 +02:00
committed by GitHub
parent 03a02e48c0
commit 20fc059ca7
11 changed files with 51 additions and 21 deletions

View File

@@ -10,7 +10,7 @@
/obj/aiming_overlay/proc/trigger(var/perm)
if((user.client.prefs.toggles_secondary & SAFETY_CHECK) && user.a_intent != I_HURT) //Check this first to save time.
if(user && user.client && (user.client.prefs.toggles_secondary & SAFETY_CHECK) && user.a_intent != I_HURT) //Check this first to save time.
user << "You refrain from firing, as you aren't on harm intent."
return
if(!owner || !aiming_with || !aiming_at || !locked)