summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-10 10:28:04 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-10 10:31:10 +0100
commit4bd335dab6488ac58d412f8b640801350207c398 (patch)
tree187a5b3252c69e55c5ad39b7045fb7c05b9f16a0 /crawl-ref/source/losparam.cc
parentaa69f6aa4526b7d8ed161de9324a5df76faec366 (diff)
downloadcrawl-ref-4bd335dab6488ac58d412f8b640801350207c398.tar.gz
crawl-ref-4bd335dab6488ac58d412f8b640801350207c398.zip
Make disintegration splatter not end up behind actors.
Also not at actors' feet. Might be even nicer to have them thrown as missiles: You are hit by a piece of orc flesh. The giant bat is hit by a chunk of yak flesh. The giant bat dies.
Diffstat (limited to 'crawl-ref/source/losparam.cc')
-rw-r--r--crawl-ref/source/losparam.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc
index 0c8f41cead..3666081897 100644
--- a/crawl-ref/source/losparam.cc
+++ b/crawl-ref/source/losparam.cc
@@ -78,3 +78,11 @@ opacity_type opacity_monmove::operator()(const coord_def& p) const
else
return (OPC_CLEAR);
}
+
+opacity_type opacity_no_actor::operator()(const coord_def& p) const
+{
+ if (feat_is_solid(env.grid(p)) || actor_at(p))
+ return (OPC_OPAQUE);
+ else
+ return (OPC_CLEAR);
+}