summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-13 14:02:33 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-13 14:02:33 +0000
commitb18feb600cbda9edcccaeac0dd1c36ae2e24b6a0 (patch)
tree5663e395280775c4437b04a396c716b7d62f2087 /crawl-ref/source/beam.cc
parent6c4dcd25f5125e1cbb768ba1d61fa1dc0f16d42f (diff)
downloadcrawl-ref-b18feb600cbda9edcccaeac0dd1c36ae2e24b6a0.tar.gz
crawl-ref-b18feb600cbda9edcccaeac0dd1c36ae2e24b6a0.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5020 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index db1074e5a4..691915cdfc 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -150,8 +150,8 @@ static kill_category _whose_kill(const bolt &beam)
return (KC_FRIENDLY);
if (beam.beam_source >= 0 && beam.beam_source < MAX_MONSTERS)
{
- const monsters *mons = &menv[beam.beam_source];
- if (mons_friendly(mons))
+ const monsters *mon = &menv[beam.beam_source];
+ if (mons_friendly(mon))
return (KC_FRIENDLY);
}
}
@@ -2633,14 +2633,14 @@ int affect(bolt &beam, int x, int y, item_def *item)
int mid = mgrd[x][y];
if (mid != NON_MONSTER)
{
- monsters *mons = &menv[mid];
+ monsters *mon = &menv[mid];
// Monsters submerged in shallow water can be targeted by beams
// aimed at that spot.
- if (mons->alive()
- && (!mons->submerged()
- || (beam.aimed_at_spot && beam.target() == mons->pos()
- && grd(mons->pos()) == DNGN_SHALLOW_WATER)))
+ if (mon->alive()
+ && (!mon->submerged()
+ || (beam.aimed_at_spot && beam.target() == mon->pos()
+ && grd(mon->pos()) == DNGN_SHALLOW_WATER)))
{
if (!beam.is_big_cloud
&& (!beam.is_explosion || beam.in_explosion_phase))
@@ -3481,7 +3481,7 @@ static int _affect_player( bolt &beam, item_def *item )
// Beam from player rebounded and hit player
xom_is_stimulated(255);
else
- // Beam from an ally
+ // Beam from an ally or neutral
xom_is_stimulated(128);
}
else
@@ -3656,7 +3656,7 @@ static int _affect_player( bolt &beam, item_def *item )
// Beam from player rebounded and hit player
if (beam.beam_source == NON_MONSTER)
xom_is_stimulated(255);
- // Xom's amusement at the player being damaged is handled
+ // Xom's amusement at the player's being damaged is handled
// elsewhere.
else if (was_affected)
xom_is_stimulated(128);
@@ -3714,7 +3714,7 @@ static void _update_hurt_or_helped(bolt &beam, monsters *mon)
beam.fr_hurt++;
// Harmful beam from this monster rebounded and hit the monster
- int midx = (int) monster_index(mon);
+ int midx = monster_index(mon);
if (midx == beam.beam_source)
xom_is_stimulated(128);
}