summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-13 08:04:42 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-13 08:04:42 +0000
commitcab797009b47f77520b8db9f8b427ba9ea14f63c (patch)
tree3257807bf2686cfb1a5f2f9d9f66040eb2df6ef4 /crawl-ref/source/decks.cc
parent659553d325a49df4870dcfa18af7f9bece5cbf16 (diff)
downloadcrawl-ref-cab797009b47f77520b8db9f8b427ba9ea14f63c.tar.gz
crawl-ref-cab797009b47f77520b8db9f8b427ba9ea14f63c.zip
* Allow panlords to have the chaos-branded weapons.
* update stash tracker after Xom's teleportation journey. * A few tweaks to Xom debug noting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9599 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index c8233f0139..048c2b3d56 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1670,8 +1670,10 @@ static void _move_stair(coord_def stair_pos, bool away)
viewwindow(true, false);
if (!swap_features(stair_pos, ray.pos(), false, false))
+ {
mprf(MSGCH_ERROR, "_move_stair(): failed to move %s",
stair_str.c_str());
+ }
}
static void _stairs_card(int power, deck_rarity_type rarity)
@@ -1689,8 +1691,7 @@ static void _stairs_card(int power, deck_rarity_type rarity)
std::vector<coord_def> stairs_avail;
- radius_iterator ri(you.pos(), LOS_RADIUS, false, true, true);
- for (; ri; ++ri)
+ for (radius_iterator ri(you.pos(), LOS_RADIUS, false, true, true); ri; ++ri)
{
dungeon_feature_type feat = grd(*ri);
if (grid_stair_direction(feat) != CMD_NO_CMD