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:
committed by
Pasi Kallinen
parent
cf4f35ea41
commit
06d1b3353e
@@ -909,6 +909,7 @@ makelevel()
|
|||||||
TRUE, VAULT, FALSE);
|
TRUE, VAULT, FALSE);
|
||||||
g.level.flags.has_vault = 1;
|
g.level.flags.has_vault = 1;
|
||||||
++room_threshold;
|
++room_threshold;
|
||||||
|
g.rooms[g.nroom - 1].needfill = FILL_NORMAL;
|
||||||
fill_special_room(&g.rooms[g.nroom - 1]);
|
fill_special_room(&g.rooms[g.nroom - 1]);
|
||||||
mk_knox_portal(g.vault_x + w, g.vault_y + h);
|
mk_knox_portal(g.vault_x + w, g.vault_y + h);
|
||||||
if (!g.level.flags.noteleport && !rn2(3))
|
if (!g.level.flags.noteleport && !rn2(3))
|
||||||
|
|||||||
Reference in New Issue
Block a user