(and if you're targeting enemies.) This might not always be a good thing, but it's been requested…maybe it should be an option.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@900 c06c8d41-db1a-0410-9941-cceddc491573
NLSZ4SHFD6LN6AWB3HLLKQTCKQW55ZHEW3YM7XRAVAKIPD3C3Q3AC bool skip_iter = false;// Find a default targetif ( mode == TARG_ENEMY &&you.prev_targ != MHITNOT && you.prev_targ != MHITYOU ){const monsters *montarget = &menv[you.prev_targ];if (mons_near(montarget) && player_monster_visible(montarget)){skip_iter = true; // skip first iteration...XXX mega-hackmoves.tx = montarget->x;moves.ty = montarget->y;}}