From cae2ef47c31fc513cfe0ef24a46fd8f7524ef3e0 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 24 Feb 2002 05:38:57 +0000 Subject: [PATCH] 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 --- src/sp_lev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_lev.c b/src/sp_lev.c index b75d2ace3..6224c0601 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -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--;