summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-29 16:04:17 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-29 16:04:17 +0000
commitcf277d8cb8c333532b3db63855ef003553e412f5 (patch)
tree17fe0b54434dd47438272b7ef1faf3a513a1bc8c /crawl-ref
parentc1af72fdb75f13811c69666f5a770e6d8fe6ee44 (diff)
downloadcrawl-ref-cf277d8cb8c333532b3db63855ef003553e412f5.tar.gz
crawl-ref-cf277d8cb8c333532b3db63855ef003553e412f5.zip
Fix off-by-one bug in Abyssal altar generation (dolorous.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1692 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/abyss.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 8e289c1da7..e047abb094 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -154,7 +154,7 @@ static void generate_area(int gx1, int gy1, int gx2, int gy2)
{
grd[i][j] =
static_cast<dungeon_feature_type>(
- DNGN_ALTAR_ZIN + random2(NUM_GODS) );
+ DNGN_ALTAR_ZIN + random2(NUM_GODS-1) );
}
while (grd[i][j] == DNGN_ALTAR_ZIN
|| grd[i][j] == DNGN_ALTAR_SHINING_ONE