Fixes Jump To Area runtime

Trying to jump to an area with no associated turfs would runtime
This commit is contained in:
Krausus
2015-05-14 04:56:03 -04:00
parent 494ffc00a1
commit 9a936944a3
+6 -1
View File
@@ -6,7 +6,12 @@
src << "Only administrators may use this command."
return
usr.loc = pick(get_area_turfs(A))
var/list/area_turfs = get_area_turfs(A)
if(area_turfs && area_turfs.len)
usr.loc = pick(area_turfs)
else
src << "That area has no turfs to jump to!"
return
log_admin("[key_name(usr)] jumped to [A]")
message_admins("[key_name_admin(usr)] jumped to [A]", 1)
feedback_add_details("admin_verb","JA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!