summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 12:26:29 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 12:26:29 +0000
commitbb6930c4b733afe63784e44792b47d08a7ece2d8 (patch)
tree9cef4d9008d565a6a6659e410d4b9ecc59220cd6 /crawl-ref/source/monplace.cc
parent03e08f2dfe6d8a767b3d8f2b5773166fa3b9ac5e (diff)
downloadcrawl-ref-bb6930c4b733afe63784e44792b47d08a7ece2d8.tar.gz
crawl-ref-bb6930c4b733afe63784e44792b47d08a7ece2d8.zip
Force monsters generated with only a missile launcher to wield the launcher
when being generated (instead of switching to it before firing the first shot). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1816 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 20a7b2a4dc..a6ef07c3f1 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -578,6 +578,9 @@ static int place_monster_aux( int mon_type, beh_type behaviour, int target,
// Give these monsters a second weapon -- bwr
if (mons_wields_two_weapons(static_cast<monster_type>(mon_type)))
give_item( id, power );
+
+ unwind_var<int> save_speedinc(menv[id].speed_increment);
+ menv[id].wield_melee_weapon(false);
}
// give manticores 8 to 16 spike volleys.