diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-05-07 12:03:16 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-05-08 02:56:55 +0200 |
commit | c72633f3ac3476c597f3ecc322c7bacda0010822 (patch) | |
tree | f7463d9426217e88fd7096e924cbea050a1c86ba /crawl-ref/source/target.h | |
parent | 6eee55f5ed2591e255302a41763eed449adc2547 (diff) | |
download | crawl-ref-c72633f3ac3476c597f3ecc322c7bacda0010822.tar.gz crawl-ref-c72633f3ac3476c597f3ecc322c7bacda0010822.zip |
Let targetters return a custom reason why targetting failed.
This fixes nearby walls being "out of range".
Diffstat (limited to 'crawl-ref/source/target.h')
-rw-r--r-- | crawl-ref/source/target.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/target.h b/crawl-ref/source/target.h index e950a4d1c2..290be60fd7 100644 --- a/crawl-ref/source/target.h +++ b/crawl-ref/source/target.h @@ -21,6 +21,7 @@ public: coord_def origin; coord_def aim; const actor* agent; + std::string why_not; virtual bool set_aim(coord_def a); virtual bool valid_aim(coord_def a) = 0; |