TG: Fixes for detective work. Should fix some of the massive lag, probably caused

by all those list()s that were being made for every atom.  And this is why I
should not code at 2AM.  (A UI overhaul-ish thing will come soon for the
detective computer.)
Revision: r3257
Author: 	 joe.heinemeyer
This commit is contained in:
Ren Erthilo
2012-04-25 23:26:42 +01:00
parent 030b1c7f6a
commit d5d4e8b506
3 changed files with 22 additions and 15 deletions

View File

@@ -549,7 +549,7 @@ obj/machinery/computer/forensic_scanning
for(var/n = 2, n <= perp_list.len, n++) //Lets see if it is already in the database
var/list/target = perp_list[n]
var/atom/atom_checker = target[1]
var/atom_checker_scan = (A.original_atom ? atom_checker.original_atom[1] == A.original_atom[1] : 0)
var/atom_checker_scan = (A.original_atom.len ? atom_checker.original_atom[1] == A.original_atom[1] : 0)
if(atom_checker.original_atom[1] == A || atom_checker_scan) //Found the original object!
found2 = 1
var/list/prints = target[2]