git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8418 c06c8d41-db1a-0410-9941-cceddc491573
QAG3ZYLCAYC7SX5DY5ZVEEFRIJTUBFHDOFRGK6DA2FF2AQNMEWLAC
if (i_feel_safe())
{
start_travel(gc);
return CK_MOUSE_CMD;
}
// If not safe, then take one step towards the click.
travel_pathfind tp;
tp.set_src_dst(you.pos(), gc);
const coord_def dest = tp.pathfind(RMODE_TRAVEL);
if (!dest.x && !dest.y)
return 0;
return _adjacent_cmd(dest, event);
}
// If not safe, then take one step towards the click.
travel_pathfind tp;
tp.set_src_dst(you.pos(), gc);
const coord_def dest = tp.pathfind(RMODE_TRAVEL);
if (!dest.x && !dest.y)
return 0;
return _adjacent_cmd(dest, event);
return _click_travel(gc, event);