From 6ebcd3f73efb7cb08807bedd0524d1dfdd6db978 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 3 Aug 2009 09:45:16 +0000 Subject: * Fix infinite Xom teleportation rides. Whoops! * Move unseen altar/entrance tiles to dngn.png, so they're handled correctly with magic mapping. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10482 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/xom.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/xom.cc') diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index 0931a1ecb3..c1d0419e53 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -1700,7 +1700,7 @@ static bool _xom_is_good(int sever, int tension) if (one_chance_in(10)) break; } - while (x_chance_in_y(3, 4) || count > 7 + random2(5) + while (x_chance_in_y(3, 4) || count <= 7 + random2(5) || player_in_a_dangerous_place()); maybe_update_stashes(); @@ -2720,7 +2720,7 @@ static bool _xom_is_bad(int sever, int tension) you_teleport_now(false); more(); } - while (count > 7 + random2(5) + while (count <= 7 + random2(5) || x_chance_in_y(3, 4) && !player_in_a_dangerous_place()); badness = player_in_a_dangerous_place() ? 3 : 1; maybe_update_stashes(); -- cgit v1.2.3-54-g00ecf