summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fineff.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-24 15:44:58 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-24 16:36:05 +0200
commitab63cefa5be7fe972ce89cfdce2a7255118e52cb (patch)
tree96d45f7900d6f89507720f21b83daff6ab1654c8 /crawl-ref/source/fineff.h
parentd2cc57c974fd2c9e6312ef388409a8be17628723 (diff)
downloadcrawl-ref-ab63cefa5be7fe972ce89cfdce2a7255118e52cb.tar.gz
crawl-ref-ab63cefa5be7fe972ce89cfdce2a7255118e52cb.zip
Use final effects to make monster Mirror Damage safe against crashes.
It would remove the attacker, in the same vein as our numerous chaos brand problems.
Diffstat (limited to 'crawl-ref/source/fineff.h')
-rw-r--r--crawl-ref/source/fineff.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/fineff.h b/crawl-ref/source/fineff.h
index a50c28331d..3f821ec94b 100644
--- a/crawl-ref/source/fineff.h
+++ b/crawl-ref/source/fineff.h
@@ -9,9 +9,10 @@
#define FINEFF_H
void add_final_effect(final_effect_flavour flavour,
- actor *attacker,
- actor *defender,
- coord_def pos);
+ const actor *attacker = 0,
+ const actor *defender = 0,
+ coord_def pos = coord_def(0,0),
+ int x = 0);
void fire_final_effects();
#endif