diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 01:00:51 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 01:00:51 +0000 |
commit | b49b73d9b3736c7dad367e7f61c78ca35787f428 (patch) | |
tree | 90b20c0aa3aef6ca3f37a367c6009221b0b14e25 /crawl-ref/source/item_use.cc | |
parent | 7fd9d9a617f65db7695d4858deed6f2cc01fd72c (diff) | |
download | crawl-ref-b49b73d9b3736c7dad367e7f61c78ca35787f428.tar.gz crawl-ref-b49b73d9b3736c7dad367e7f61c78ca35787f428.zip |
Lots and lots of type safety.
Caught a bug in the definition of shadows (isn't it lucky that
BLACK == MST_NO_SPELLS?)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1788 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index d57bf9ded2..6c803040e6 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2582,13 +2582,13 @@ bool remove_ring(int slot, bool announce) void zap_wand(void) { - struct bolt beam; - struct dist zap_wand; + bolt beam; + dist zap_wand; int item_slot; // Unless the character knows the type of the wand, the targeting // system will default to enemies. -- [ds] - int targ_mode = TARG_ENEMY; + targ_mode_type targ_mode = TARG_ENEMY; beam.obvious_effect = false; |