summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-05 17:13:33 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-05 17:13:33 +0000
commita0b554fad45a8d736a8365e916e2d3982322262f (patch)
tree1ff78ce455c474c44610f0576b89427095e882cf /crawl-ref/source
parent5c54720bc1a4728c8091364ccf745d4c8f4140b7 (diff)
downloadcrawl-ref-a0b554fad45a8d736a8365e916e2d3982322262f.tar.gz
crawl-ref-a0b554fad45a8d736a8365e916e2d3982322262f.zip
Remove inaccurate comment and unneeded code in monsters::body_weight().
Water elementals aren't insubstantial, and should have their weight set to 1500 by virtue of their size, so there's no need to hardcode it there. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4884 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/mon-util.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 2609560a67..cc21050843 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2713,10 +2713,6 @@ int monsters::body_weight() const
int weight = mons_weight(mclass);
- // Water elementals are "insubstantial", but still have weight.
- if (weight == 0 && type == MONS_WATER_ELEMENTAL)
- weight = 1500;
-
// weight == 0 in the monster entry indicates "no corpse". Can't
// use CE_NOCORPSE, because the corpse-effect field is used for
// corpseless monsters to indicate what happens if their blood