Runtime error fixes for AI camera chunks and ZAS ZConnect()

This commit is contained in:
Albert Iordache
2012-06-14 07:50:19 +03:00
parent 0a76833ec3
commit a278b7c29f
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -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
+1 -1
View File
@@ -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)