Skip to content

Commit

Permalink
fixes is_interior(), fixing xeno construction on dropships during tra…
Browse files Browse the repository at this point in the history
…nsport (#5158)

huh? how'd this not get reported?

:cl:
fix: xenos can construct in dropships during transport again
/:cl:
  • Loading branch information
harryob authored Dec 9, 2023
1 parent 36c1dfa commit f8e0618
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 f8e0618

Please sign in to comment.