Skip to content

Commit

Permalink
fixes is_interior()
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Dec 7, 2023
1 parent 458fc8f commit 3c3fa56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/controllers/subsystem/interior.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ SUBSYSTEM_DEF(interior)
if(!isturf(loc))
loc = get_turf(loc)

var/datum/weakref/reservation = SSmapping.used_turfs[loc]
var/datum/weakref/reservation_weakref = SSmapping.used_turfs[loc]

if(!reservation_weakref)
return

var/datum/turf_reservation/interior/reservation = reservation_weakref.resolve()

if(!istype(reservation))
return FALSE

return TRUE

#undef INTERIOR_BORDER_SIZE

0 comments on commit 3c3fa56

Please sign in to comment.