mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fix possible error on following lines
This commit is contained in:
@@ -248,14 +248,14 @@ GENERAL PROCS
|
||||
var/parea = "ERROR"
|
||||
// area can be null in the case of nullspacing
|
||||
var/area/A = get_area(B)
|
||||
if(A)
|
||||
if(!isnull(A))
|
||||
parea = format_text(A.name)
|
||||
|
||||
if(istype(M.loc,/obj/item/weapon/storage/belt/silicon))
|
||||
continue
|
||||
|
||||
var/turf/pos = get_turf(B)
|
||||
if((pos.z in all_tracked_z_levels) && istype(M) && M.brainmob == B && !isrobot(M.loc))
|
||||
if(!isnull(pos) && (pos.z in all_tracked_z_levels) && istype(M) && M.brainmob == B && !isrobot(M.loc))
|
||||
var/see_x = pos.x - WORLD_X_OFFSET[pos.z]
|
||||
var/see_y = pos.y - WORLD_Y_OFFSET[pos.z]
|
||||
entries[pos.z][++entries[pos.z].len] = list(see_x, see_y, B, "[B]", "MMI", null, null, parea, 60, pos)
|
||||
|
||||
Reference in New Issue
Block a user