mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Runtime error fixes for AI camera chunks and ZAS ZConnect()
This commit is contained in:
@@ -216,6 +216,9 @@
|
||||
images_added += t.obscured
|
||||
|
||||
for(var/mob/aiEye/eye in seenby)
|
||||
if(eye.ai.client)
|
||||
eye.ai.client.images -= images_removed
|
||||
eye.ai.client.images |= images_added
|
||||
if(eye.ai)
|
||||
if(eye.ai.client)
|
||||
eye.ai.client.images -= images_removed
|
||||
eye.ai.client.images |= images_added
|
||||
else
|
||||
seenby -= eye
|
||||
@@ -123,7 +123,7 @@ proc/ZConnect(turf/A,turf/B)
|
||||
var/list/connections = air_master.tiles_with_connections["\ref[A]"]
|
||||
for(var/connection/C in connections)
|
||||
C.Cleanup()
|
||||
if(C.B == B || C.A == B)
|
||||
if(C && (C.B == B || C.A == B))
|
||||
return
|
||||
|
||||
new /connection(A,B)
|
||||
|
||||
Reference in New Issue
Block a user