diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-04-09 18:50:57 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-04-09 18:50:57 +0100 |
commit | 01b6a50c178d906a6b2d09b09eec19e1ea6339f5 (patch) | |
tree | de7ae20688e7aad3fd630155dbdbba59acab3bf7 /crawl-ref/source/traps.cc | |
parent | ce8561742cf1402f777396564ba4c00d1c4dc0ba (diff) | |
download | crawl-ref-01b6a50c178d906a6b2d09b09eec19e1ea6339f5.tar.gz crawl-ref-01b6a50c178d906a6b2d09b09eec19e1ea6339f5.zip |
Fix some warnings
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 7a4c123533..da12c0cf37 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -1521,10 +1521,6 @@ void trap_def::shoot_ammo(actor& act, bool was_known) return; } - // Record position now, in case it's a monster and dies (thus - // resetting its position) before the ammo can be dropped. - const coord_def apos = act.pos(); - item_def shot = generate_trap_item(); int trap_hit = (20 + (difficulty()*2)) * random2(200) / 100; |