diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-05-12 23:23:56 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-05-12 23:23:56 -0400 |
commit | e3603d9cd69c02b62cb3d545b26544c0603161f5 (patch) | |
tree | 0f15d11508003d398f4c34b946a3de9676f4b19a /crawl-ref/source/mon-behv.cc | |
parent | b5c1d9a4e1d550ad79379dee60d992b7d9819619 (diff) | |
download | crawl-ref-e3603d9cd69c02b62cb3d545b26544c0603161f5.tar.gz crawl-ref-e3603d9cd69c02b62cb3d545b26544c0603161f5.zip |
Remove unused variables (Grunt)
Also silences some compiler warnings.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 4138965685..f792e2ef34 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -1228,17 +1228,12 @@ void behaviour_event(monster* mon, mon_event_type event, const actor *src, int fleeThreshold = min(mon->max_hit_points / 4, 20); bool isSmart = (mons_intel(mon) > I_ANIMAL); - bool wontAttack = mon->wont_attack(); - bool sourceWontAttack = false; bool setTarget = false; bool breakCharm = false; bool was_sleeping = mon->asleep(); string msg; int src_idx = src ? src->mindex() : MHITNOT; // AXE ME - if (src) - sourceWontAttack = src->wont_attack(); - if (is_sanctuary(mon->pos()) && mons_is_fleeing_sanctuary(mon)) { mon->behaviour = BEH_FLEE; |