summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 02:37:33 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 02:37:33 +0000
commitd1797e64c386dec1d0569ce504da85f076ee4d6b (patch)
tree1ac2b84a696180970a9b8bbc90a6c8887c8fd0c7 /crawl-ref/source/monstuff.cc
parent2739849714d0e5356dedc5b6ba8d7eb8620d0d37 (diff)
downloadcrawl-ref-d1797e64c386dec1d0569ce504da85f076ee4d6b.tar.gz
crawl-ref-d1797e64c386dec1d0569ce504da85f076ee4d6b.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6197 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 7ecf2756ff..9e1c99af06 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -2379,7 +2379,7 @@ static void _mons_find_all_level_exits(const monsters *mon,
{
if (in_bounds(x, y))
{
- dungeon_feature_type gridc = grd[x][y];
+ const dungeon_feature_type gridc = grd[x][y];
// All types of stairs.
if (is_stair(gridc))
@@ -2432,22 +2432,22 @@ static int _mons_find_nearest_level_exit(const monsters *mon,
// types, this should be expanded along with it.
static void _mons_indicate_level_exit(const monsters *mon)
{
- const dungeon_feature_type dft = grd(mon->pos());
+ const dungeon_feature_type gridc = grd(mon->pos());
// All types of stairs.
- if (is_travelable_stair(dft))
+ if (is_travelable_stair(gridc))
{
- command_type dir = grid_stair_direction(dft);
+ command_type dir = grid_stair_direction(gridc);
simple_monster_message(mon,
make_stringf(" %s the stairs.",
dir == CMD_GO_UPSTAIRS ? "goes up" :
dir == CMD_GO_DOWNSTAIRS ? "goes down"
: "takes").c_str());
}
- else if (is_gate(dft))
+ else if (is_gate(gridc))
simple_monster_message(mon, " passes through the gate.");
// Any place the monster can submerge.
- else if (monster_can_submerge(mon, dft))
+ else if (monster_can_submerge(mon, gridc))
{
simple_monster_message(mon,
make_stringf(" disappears into %s!",