diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-03 04:01:24 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-03 04:01:24 +0000 |
commit | bb02d6cc90ebbb48b95f2105a3496c5069bb9328 (patch) | |
tree | e879a91917ce2d21430e0327153d7c6234597ed6 /crawl-ref/source/it_use3.cc | |
parent | 63e312c909cf2d91461e1b17b6e4c4a71a8250a0 (diff) | |
download | crawl-ref-bb02d6cc90ebbb48b95f2105a3496c5069bb9328.tar.gz crawl-ref-bb02d6cc90ebbb48b95f2105a3496c5069bb9328.zip |
Add type fix: attacking targets are unsigned ints, not ints.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5447 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r-- | crawl-ref/source/it_use3.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index a825e11a08..f99a33ebc3 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -688,7 +688,7 @@ bool evoke_wielded() static bool efreet_flask(void) { beh_type beha = BEH_HOSTILE; - int hitting = MHITYOU; + unsigned int hitting = MHITYOU; if (you.skills[SK_EVOCATIONS] / 3 + 10 > random2(20)) { @@ -975,7 +975,7 @@ static bool box_of_beasts() : MONS_GIANT_LIZARD); beh_type beha = BEH_FRIENDLY; - int hitting = you.pet_target; + unsigned int hitting = you.pet_target; if (one_chance_in(you.skills[SK_EVOCATIONS] + 5)) { |