Fix: randomly generated vaults weren't being filled

This also caused the unexpected "You hear someone searching" message on
a level with an unlooted vault.
This commit is contained in:
copperwater
2020-06-01 10:08:21 -04:00
committed by Pasi Kallinen
parent cf4f35ea41
commit 06d1b3353e

View File

@@ -909,6 +909,7 @@ makelevel()
TRUE, VAULT, FALSE);
g.level.flags.has_vault = 1;
++room_threshold;
g.rooms[g.nroom - 1].needfill = FILL_NORMAL;
fill_special_room(&g.rooms[g.nroom - 1]);
mk_knox_portal(g.vault_x + w, g.vault_y + h);
if (!g.level.flags.noteleport && !rn2(3))