repetition is canceled.
Repetitions of searching and go-nowhere weren't being interrupted.
Wasn't generating activity interrupts for AI_FULL_MP and AI_FULL_HP.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2150 c06c8d41-db1a-0410-9941-cceddc491573
ZFU47WIFCFIBN44OHNWXWGYCB2YQV2S7AMCKYTMPPKXGKZJY25LQC
// If command repitition is being used to immitate the rest command,
// then everything interrupts it.
if (crawl_state.repeat_cmd == CMD_MOVE_NOWHERE
|| crawl_state.repeat_cmd == CMD_SEARCH)
{
if (ai == AI_FULL_MP)
crawl_state.cancel_cmd_repeat("Magic restored.");
else if (ai = AI_FULL_HP)
crawl_state.cancel_cmd_repeat("HP restored.");
else
crawl_state.cancel_cmd_repeat("Command repetition interrupted.");
return true;
}