From cab797009b47f77520b8db9f8b427ba9ea14f63c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 13 Apr 2009 08:04:42 +0000 Subject: * 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 --- crawl-ref/source/decks.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/decks.cc') 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 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 -- cgit v1.2.3-54-g00ecf