summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-19 12:59:48 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-19 12:59:48 +0000
commitfada7cc9c6c230526a737d34e8f04cf22969b7f7 (patch)
treedd7146f60eac45627220860d5ab3289466f9d025 /crawl-ref/source/beam.cc
parentda3bf95551a8e8ccc61035857608f6a1213ccf39 (diff)
downloadcrawl-ref-fada7cc9c6c230526a737d34e8f04cf22969b7f7.tar.gz
crawl-ref-fada7cc9c6c230526a737d34e8f04cf22969b7f7.zip
Fix 1996837: Allow equipping spellcasters with ammunition on generation.
Fix 1997179: Merge zombies correctly in the monster list. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5977 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index bc8f19d7f9..e7fa203a2b 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -5209,7 +5209,7 @@ static void _explosion1(bolt &pbolt)
if (!pbolt.is_tracer && *seeMsg && *hearMsg)
{
- // check for see/hear/no msg
+ // Check for see/hear/no msg.
if (see_grid(x,y) || x == you.x_pos && y == you.y_pos)
mpr(seeMsg);
else
@@ -5399,10 +5399,10 @@ void explosion( bolt &beam, bool hole_in_the_middle,
// new-- delay after every 'ring' {gdl}
// If we don't refresh curses we won't
- // guarantee that the explosion is visible
+ // guarantee that the explosion is visible.
if (drawing)
update_screen();
- // only delay on real explosion
+ // Only delay on real explosion.
if (!beam.is_tracer && drawing)
delay(50);
}
@@ -5426,7 +5426,7 @@ void explosion( bolt &beam, bool hole_in_the_middle,
set_buffering(oldValue);
#endif
- // duplicate old behaviour - pause after entire explosion
+ // Duplicate old behaviour - pause after entire explosion
// has been drawn.
if (!beam.is_tracer && seen_anything && show_more)
more();
@@ -5440,10 +5440,10 @@ static void _explosion_cell(bolt &beam, int x, int y, bool drawOnly)
if (!drawOnly)
{
- // Random beams: randomize before affect.
+ // Random beams: randomize before affect().
if (beam.flavour == BEAM_RANDOM)
{
- random_beam = true;
+ random_beam = true;
beam.flavour = static_cast<beam_type>(
random_range(BEAM_FIRE, BEAM_ACID) );
}
@@ -5463,7 +5463,7 @@ static void _explosion_cell(bolt &beam, int x, int y, bool drawOnly)
int drawx = grid2viewX(realx);
int drawy = grid2viewY(realy);
- if (see_grid(realx, realy) || (realx == you.x_pos && realy == you.y_pos))
+ if (see_grid(realx, realy) || realx == you.x_pos && realy == you.y_pos)
{
#ifdef USE_TILE
if (in_los_bounds(drawx, drawy))