summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 14:44:53 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 14:44:53 +0000
commitca82de1586c1f9488f5d491a147de28fda82b632 (patch)
tree18adc5c29481531ba503f616797c57f50dd75dbe
parentebc76bb5f9eac3f8464bbcb7e1fad88b68ab9b3a (diff)
downloadcrawl-ref-ca82de1586c1f9488f5d491a147de28fda82b632.tar.gz
crawl-ref-ca82de1586c1f9488f5d491a147de28fda82b632.zip
Fixed the bug where ranged weapons were getting
SPWPN_FLAMING and SPWPN_FREEZING instead of SPWPN_FLAME and SPWPN_FROST. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@69 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/dungeon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 07ffa799d8..bfded837ef 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -1150,8 +1150,8 @@ int items( int allow_uniques, // not just true-false,
{
const int tmp = random2(1000);
- set_weapon_special( p, (tmp < 375) ? SPWPN_FLAMING :
- (tmp < 750) ? SPWPN_FREEZING :
+ set_weapon_special( p, (tmp < 375) ? SPWPN_FLAME :
+ (tmp < 750) ? SPWPN_FROST :
(tmp < 920) ? SPWPN_PROTECTION :
(tmp < 980) ? SPWPN_VORPAL
: SPWPN_SPEED );