Fixes away map selection not checking if the away site could spawn in that sector (#13648)

This commit is contained in:
Alberyk
2022-04-24 14:28:28 -03:00
committed by GitHub
parent b1ee91d5e3
commit 13679b2653
+1 -1
View File
@@ -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