summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 17:30:31 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 17:30:31 +0000
commit57f3e71ae59d5e4830bdf787d9f2d5e9d5fe8fc8 (patch)
tree835d7e23d1c0d27e935015288effd8115a949cf0 /crawl-ref/source/terrain.cc
parent1f9e38751c81744f2e8d4ffb1aea7f3870ba9d5b (diff)
downloadcrawl-ref-57f3e71ae59d5e4830bdf787d9f2d5e9d5fe8fc8.tar.gz
crawl-ref-57f3e71ae59d5e4830bdf787d9f2d5e9d5fe8fc8.zip
In ouch(), use NON_MONSTER instead of 0 as the index for non-monster
attacks, so as to avoid overlap with the first monster on the level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6985 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index 532538f469..67a2fa84b6 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -608,13 +608,13 @@ bool fall_into_a_pool( const coord_def& entry, bool allow_shift,
if (resist <= 0)
{
mpr( "The lava burns you to a cinder!" );
- ouch( INSTANT_DEATH, 0, KILLED_BY_LAVA );
+ ouch(INSTANT_DEATH, NON_MONSTER, KILLED_BY_LAVA);
}
else
{
// should boost # of bangs per damage in the future {dlb}
mpr( "The lava burns you!" );
- ouch( (10 + roll_dice(2,50)) / resist, 0, KILLED_BY_LAVA );
+ ouch((10 + roll_dice(2, 50)) / resist, NON_MONSTER, KILLED_BY_LAVA);
}
expose_player_to_element( BEAM_LAVA, 14 );
@@ -668,9 +668,9 @@ bool fall_into_a_pool( const coord_def& entry, bool allow_shift,
mpr("You drown...");
if (terrain == DNGN_LAVA)
- ouch( INSTANT_DEATH, 0, KILLED_BY_LAVA );
+ ouch(INSTANT_DEATH, NON_MONSTER, KILLED_BY_LAVA);
else if (terrain == DNGN_DEEP_WATER)
- ouch( INSTANT_DEATH, 0, KILLED_BY_WATER );
+ ouch(INSTANT_DEATH, NON_MONSTER, KILLED_BY_WATER);
return (false);
}