From b49b73d9b3736c7dad367e7f61c78ca35787f428 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 8 Jul 2007 01:00:51 +0000 Subject: 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 --- crawl-ref/source/item_use.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/item_use.cc') 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; -- cgit v1.2.3-54-g00ecf