diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 05:55:09 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 05:55:09 +0000 |
commit | ef3ee3ebdcf4aa3e08285ade7c96607e673e66ba (patch) | |
tree | 923deaeae2dc5e86b542f8c1ab17f03e88919081 /crawl-ref/source | |
parent | 4f344bc0461bf77daf839129bf3802c77ba2bfa6 (diff) | |
download | crawl-ref-ef3ee3ebdcf4aa3e08285ade7c96607e673e66ba.tar.gz crawl-ref-ef3ee3ebdcf4aa3e08285ade7c96607e673e66ba.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5588 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/spells3.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 30a44a7134..d4f2989a2b 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -477,8 +477,6 @@ bool dancing_weapon(int pow, bool force_hostile, { bool success = true; - int monster; - const int dur = std::min(2 + (random2(pow) / 5), 6); const int wpn = you.equip[EQ_WEAPON]; @@ -494,9 +492,12 @@ bool dancing_weapon(int pow, bool force_hostile, // See if we can get an mitm for the dancing weapon: int i = get_item_slot(); + if (i == NON_ITEM) success = false; + int monster; + if (success) { // Cursed weapons become hostile. @@ -554,10 +555,8 @@ bool dancing_weapon(int pow, bool force_hostile, return (true); } -// -// This function returns true if the player can use controlled -// teleport here. -// +// This function returns true if the player can use controlled teleport +// here. bool allow_control_teleport( bool silent ) { bool ret = true; |