Fixed a crash when monsters 'splash around'.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1673 c06c8d41-db1a-0410-9941-cceddc491573
VVEULZ7FMS53F6WZUJLNJ23URJMCCWHBUEDVGKI6R72JO2DLL5HQC
EIHGPFT3BQM7I76T3MITHSNFMDNNBWLUGEVQHTXID6UJQHVRNSDAC
KFULGQQOHWUTXOM3BXCCYPGGVGGY4Z6265XUFRCBPNLTZAEHJZSQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
mprf("%s splashes around in the water.");
mprf("%s splashes around in the water.", this->name(DESC_CAP_THE).c_str());
mprf("%s splashes around in the water.",
this->name(DESC_CAP_THE).c_str());
// maybe we can remove the YOU_KILL... if ( grid_destroys_items(grd[x][y]) && YOU_KILL(beam.thrower) )
// maybe we can remove the YOU_KILL...
if ( grid_destroys_items(grd[x][y]) && YOU_KILL(beam.thrower) )
if ( grid_destroys_items(grd[x][y]) )
mprf(MSGCH_SOUND, grid_item_destruction_message(grd[x][y]));
// Too much message spam otherwise if ( YOU_KILL(beam.thrower) ) mprf(MSGCH_SOUND, grid_item_destruction_message(grd[x][y]));
// Too much message spam otherwise
if ( YOU_KILL(beam.thrower) )
if (YOU_KILL(beam.thrower) // ie if you threw it. && (!grid_destroys_items(grd[x][y])))
if (YOU_KILL(beam.thrower) // ie if you threw it.
&& (!grid_destroys_items(grd[x][y])))
if (YOU_KILL(beam.thrower)) // you threw it