the explosion. Fixes 1790761.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2117 c06c8d41-db1a-0410-9941-cceddc491573
7RE7J5DEMEO52RKOE77JMEXKZ7ORJJMCRGKLC6NHYDJW66UKYE4AC
XRZPPYWPWUOM4SFNI6BHKH2UKJQNLKOV6Y7XIEPEZXE5QYRT26PAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
struct bolt beam; int type = monster->type;
struct bolt beam;
int type = monster->type;
bolt beam; const int type = monster->type;
bolt beam;
const int type = monster->type;
const char* msg = "";
const char* msg = NULL;
else
else if (type == MONS_BALL_LIGHTNING)
else { msg::streams(MSGCH_DIAGNOSTICS) << "Unknown spore type: " << static_cast<int>(type) << std::endl; return; }
{
msg::streams(MSGCH_DIAGNOSTICS) << "Unknown spore type: "
<< static_cast<int>(type)
<< std::endl;
return;
}
for (int i=0; i<19; i++) { for (int j=0; j<19; j++) explode_map[i][j] = false; }
for (int i=0; i<19; i++)
for (int j=0; j<19; j++)
explode_map[i][j] = false;
explode_map.init(false);
bool seen_anything = false; for ( int i = -9; i <= 9; ++i ) for ( int j = -9; j <= 9; ++j ) if ( explode_map[i+9][j+9] && see_grid(beam.target_x + i, beam.target_y + j) ) seen_anything = true;
bool seen_anything = false;
for ( int i = -9; i <= 9; ++i )
for ( int j = -9; j <= 9; ++j )
if ( explode_map[i+9][j+9] &&
see_grid(beam.target_x + i, beam.target_y + j) )
seen_anything = true;
if (!beam.is_tracer)
if (!beam.is_tracer && seen_anything)
int dngn_feat = grd[beam.target_x + x][beam.target_y + y];
const int dngn_feat = grd[beam.target_x + x][beam.target_y + y];