summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-08 22:28:21 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-08 22:28:21 +0000
commit979227dfb5b6f9d6574abe88b6e446ea948f95fa (patch)
tree4b4125ddf79edbd718bace07d26b216511f7dcbc
parent80cf465fff32ada6065a884416bdab00df99db0c (diff)
downloadcrawl-ref-979227dfb5b6f9d6574abe88b6e446ea948f95fa.tar.gz
crawl-ref-979227dfb5b6f9d6574abe88b6e446ea948f95fa.zip
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7789 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/acr.cc16
-rw-r--r--crawl-ref/source/stuff.cc4
2 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 0b4ea44422..346e301c46 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -1768,9 +1768,9 @@ static void _go_upstairs()
if (_marker_vetoes_stair())
return;
- tag_followers(); // Only those beside us right now can follow.
- start_delay( DELAY_ASCENDING_STAIRS,
- 1 + (you.burden_state > BS_UNENCUMBERED) );
+ tag_followers(); // Only those beside us right now can follow.
+ start_delay(DELAY_ASCENDING_STAIRS,
+ 1 + (you.burden_state > BS_UNENCUMBERED));
}
static void _go_downstairs()
@@ -1817,10 +1817,10 @@ static void _go_downstairs()
if (_marker_vetoes_stair())
return;
- tag_followers(); // only those beside us right now can follow
- start_delay( DELAY_DESCENDING_STAIRS,
- 1 + (you.burden_state > BS_UNENCUMBERED),
- you.your_level );
+ tag_followers(); // Only those beside us right now can follow.
+ start_delay(DELAY_DESCENDING_STAIRS,
+ 1 + (you.burden_state > BS_UNENCUMBERED),
+ you.your_level);
}
}
@@ -2769,7 +2769,7 @@ static void _decrement_durations()
if (_decrement_a_duration(DUR_TELEPORT))
{
// Only to a new area of the abyss sometimes (for abyss teleports).
- you_teleport_now( true, one_chance_in(5) );
+ you_teleport_now(true, one_chance_in(5));
untag_followers();
}
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index dca0e8ab4d..2bd2a6da09 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -448,7 +448,7 @@ void tag_followers()
void untag_followers()
{
- for (int m = 0; m < MAX_MONSTERS; m++)
+ for (int m = 0; m < MAX_MONSTERS; ++m)
menv[m].flags &= (~MF_TAKING_STAIRS);
}
@@ -460,7 +460,7 @@ unsigned char get_ch()
gotched = getch();
return gotched;
-} // end get_ch()
+}
void seed_rng(long seed)
{