From: Carl Worth Date: Mon, 14 May 2007 21:02:24 +0000 (-0700) Subject: Don't start mastery session until there are no items unlearned *nor* any to introduce X-Git-Url: https://git.cworth.org/git?p=mnemon;a=commitdiff_plain;h=2f733b4e1dffd1ff0446a11a5e95f254b47550f3 Don't start mastery session until there are no items unlearned *nor* any to introduce --- diff --git a/mnemon.c b/mnemon.c index 1ca0939..9bdef93 100644 --- a/mnemon.c +++ b/mnemon.c @@ -746,7 +746,10 @@ mnemon_handle_response (mnemon_t *mnemon, item->score = 1; mnemon->unlearned--; printf ("You got it!"); - if (mnemon->unlearned == 0 && mnemon->to_master == 0) { + if (mnemon->to_introduce == 0 && + mnemon->unlearned == 0 && + mnemon->to_master == 0) + { mnemon->to_master = 10; mnemon->mastered = 0; }