From 254c2ac607c3a7add782e947f602ed6effcd3bf1 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 24 Nov 2009 10:11:53 +0100 Subject: Remove option target_zero_exp. The same effect can now be achieved by overriding ch_target_monster. If anyone wants this, I'm happy to provide lua code. --- crawl-ref/source/directn.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 07736e93ce..08ef886a18 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -2069,9 +2069,8 @@ static bool _find_monster( const coord_def& where, int mode, bool need_path, if (mon->friendly()) return (false); - // Don't target zero xp monsters, unless target_zero_exp is set. - return (Options.target_zero_exp - || !mons_class_flag(mon->type, M_NO_EXP_GAIN)); + // Don't target zero xp monsters. + return (!mons_class_flag(mon->type, M_NO_EXP_GAIN)); } static bool _find_feature( const coord_def& where, int mode, @@ -2172,9 +2171,6 @@ bool in_los_bounds(const coord_def& p) // Returns 1 if it found something, zero otherwise. If direction // is -1, goes backwards. // -// If the game option target_zero_exp is true, zero experience -// monsters will be targeted. -// //--------------------------------------------------------------- static char _find_square( const coord_def& where, coord_def &mfp, int direction, -- cgit v1.2.3-54-g00ecf