Attempting to limit object checks.

This commit is contained in:
Zuhayr
2016-01-01 11:57:09 +10:30
parent b65649faad
commit 3044496ae9
10 changed files with 26 additions and 9 deletions

View File

@@ -175,10 +175,12 @@
L |= I
else if(istype(I,/obj/))
if(!sight_check || isInSight(I, O))
L |= recursive_content_check(I, L, recursion_limit - 1, client_check, sight_check, include_mobs, include_objects)
if(include_objects)
L |= I
var/obj/check_obj = I
if(check_obj.show_messages)
if(!sight_check || isInSight(I, O))
L |= recursive_content_check(I, L, recursion_limit - 1, client_check, sight_check, include_mobs, include_objects)
if(include_objects)
L |= I
return L
@@ -203,7 +205,8 @@
hear += M
else if(istype(I,/obj/))
hear |= recursive_content_check(I, hear, 3, 1, 0, include_mobs, include_objects)
if(include_objects)
var/obj/O = I
if(O.show_messages && include_objects)
hear += I
return hear