From 13679b2653b20f11754a89c8b59d8041e166360e Mon Sep 17 00:00:00 2001 From: Alberyk Date: Sun, 24 Apr 2022 14:28:28 -0300 Subject: [PATCH] Fixes away map selection not checking if the away site could spawn in that sector (#13648) --- maps/_common/mapsystem/map.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps/_common/mapsystem/map.dm b/maps/_common/mapsystem/map.dm index a1027826437..8abfb14d71d 100644 --- a/maps/_common/mapsystem/map.dm +++ b/maps/_common/mapsystem/map.dm @@ -224,7 +224,7 @@ guaranteed += site if ((site.template_flags & TEMPLATE_FLAG_ALLOW_DUPLICATES) && !(site.template_flags & TEMPLATE_FLAG_RUIN_STARTS_DISALLOWED)) available[site] = site.spawn_weight - else if (!(site.template_flags & TEMPLATE_FLAG_RUIN_STARTS_DISALLOWED)) + else if (!(site.template_flags & TEMPLATE_FLAG_RUIN_STARTS_DISALLOWED) && (SSatlas.current_sector.name in site.sectors)) available[site] = site.spawn_weight by_type[site.type] = site