Admin: Fix Camera Report verb (#62866)

There is still the potential for false positives since the way diagonal
cameras were made didn't exactly line up with where their direction was.

However, this brings functionality back to parity with before the
dir-sanity PR.
This commit is contained in:
esainane
2021-11-18 11:07:46 +13:00
committed by GitHub
parent 2aba6ad4cf
commit b0fd0f37b6
+1 -1
View File
@@ -119,7 +119,7 @@ GLOBAL_LIST_EMPTY(dirty_vars)
output += "<li><font color='red'>FULLY overlapping cameras at [ADMIN_VERBOSEJMP(C1)] Networks: [json_encode(C1.network)] and [json_encode(C2.network)]</font></li>"
if(C1.loc == C2.loc)
output += "<li>Overlapping cameras at [ADMIN_VERBOSEJMP(C1)] Networks: [json_encode(C1.network)] and [json_encode(C2.network)]</li>"
var/turf/T = get_step(C1,turn(C1.dir,180))
var/turf/T = get_step(C1,C1.dir)
if(!T || !isturf(T) || !T.density )
if(!(locate(/obj/structure/grille) in T))
var/window_check = 0