random shrines on special levels

- "random" shrines generate the value -1, not -11
- rn2(1) always == 0, should be rn2(2), sanctums aren't random
This commit is contained in:
cohrs
2002-02-24 05:38:57 +00:00
parent 753cc7089f
commit cae2ef47c3

View File

@@ -1130,7 +1130,7 @@ create_altar(a, croom)
levl[x][y].typ = ALTAR;
levl[x][y].altarmask = amask;
if (a->shrine == -11) a->shrine = rn2(1); /* handle random case */
if (a->shrine < 0) a->shrine = rn2(2); /* handle random case */
if (oldtyp == FOUNTAIN)
level.flags.nfountains--;